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
7namespace esengine {
9static 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.
14static_assert(sizeof(EntityPose2D) == ENTITY_POSE_2D_WORDS * sizeof(u32));
15} // namespace esengine
Reflection and metadata system for automatic binding generation.
#define ES_CONST(...)
Mark a constant that CROSSES the boundary, so EHT emits its TS twin.
Core type definitions and utilities for ESEngine.
static constexpr u32 ENTITY_POSE_2D_WORDS
std::uint32_t u32
Unsigned 32-bit integer.
Definition Types.hpp:45
float f32
32-bit floating point
Definition Types.hpp:59