Estella
0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
EntityPose2D.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
3
#pragma once
4
#include "
Types.hpp
"
5
#include "
Reflection.hpp
"
6
7
namespace
esengine
{
8
ES_CONST
()
9
static constexpr
u32
ENTITY_POSE_2D_WORDS
= 4;
10
11
// Entity bits followed by world X/Y and Z rotation in radians. Units belong to
12
// the caller: composition exports pixels; solver readback exports meters.
13
struct
EntityPose2D
{
u32
entity
;
f32
x
;
f32
y
;
f32
angle
; };
14
static_assert
(
sizeof
(
EntityPose2D
) ==
ENTITY_POSE_2D_WORDS
*
sizeof
(
u32
));
15
}
// namespace esengine
Reflection.hpp
Reflection and metadata system for automatic binding generation.
ES_CONST
#define ES_CONST(...)
Mark a constant that CROSSES the boundary, so EHT emits its TS twin.
Definition
Reflection.hpp:129
Types.hpp
Core type definitions and utilities for ESEngine.
esengine
Definition
EasingFunctions.hpp:10
esengine::ENTITY_POSE_2D_WORDS
static constexpr u32 ENTITY_POSE_2D_WORDS
Definition
EntityPose2D.hpp:9
esengine::u32
std::uint32_t u32
Unsigned 32-bit integer.
Definition
Types.hpp:45
esengine::f32
float f32
32-bit floating point
Definition
Types.hpp:59
esengine::EntityPose2D
Definition
EntityPose2D.hpp:13
esengine::EntityPose2D::angle
f32 angle
Definition
EntityPose2D.hpp:13
esengine::EntityPose2D::entity
u32 entity
Definition
EntityPose2D.hpp:13
esengine::EntityPose2D::y
f32 y
Definition
EntityPose2D.hpp:13
esengine::EntityPose2D::x
f32 x
Definition
EntityPose2D.hpp:13
src
esengine
core
EntityPose2D.hpp
Generated by
1.15.0