Estella
0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
MorphConstants.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
18
#pragma once
19
20
#include "
../../core/Types.hpp
"
21
#include "
./EngineTextureUnits.hpp
"
22
#include "
../rhi/GfxEnums.hpp
"
23
#include "
../../math/Math.hpp
"
24
25
namespace
esengine
{
26
28
struct
MorphConstants
{
31
glm::vec4
info
{0.0f};
33
glm::vec4
shape
[
MESH_MAX_ACTIVE_MORPHS
];
34
};
35
36
static_assert
(
sizeof
(
MorphConstants
) == 16 +
MESH_MAX_ACTIVE_MORPHS
* 16,
37
"MorphConstants must be a tight run of texels"
);
38
39
}
// namespace esengine
EngineTextureUnits.hpp
The samplers the engine injects into a shader, and the texture unit each is pinned to.
GfxEnums.hpp
Backend-agnostic graphics enumerations.
Math.hpp
Math utilities and GLM configuration for ESEngine.
Types.hpp
Core type definitions and utilities for ESEngine.
esengine
Definition
EasingFunctions.hpp:10
esengine::MESH_MAX_ACTIVE_MORPHS
static constexpr u32 MESH_MAX_ACTIVE_MORPHS
Definition
GfxEnums.hpp:142
esengine::MorphConstants
One draw's shapes, laid out as the texels they are written as.
Definition
MorphConstants.hpp:28
esengine::MorphConstants::info
glm::vec4 info
Definition
MorphConstants.hpp:31
esengine::MorphConstants::shape
glm::vec4 shape[MESH_MAX_ACTIVE_MORPHS]
x = which target, y = how far towards it. Only the first info.x are written.
Definition
MorphConstants.hpp:33
src
esengine
renderer
store
MorphConstants.hpp
Generated by
1.15.0