2#include <VLA/Matrix.hpp>
46 float color[4] = {1.0f, 0.0f, 0.0f, 1.0f};
55 s.write(
c.material_id);
56 s.write(
c.render_stage);
61 c.mesh_id =
s.read<
u32>();
62 c.material_id =
s.read<
u32>();
63 c.render_stage =
s.read<
i32>();
64 c.view_mask =
s.read<
u32>();
#define REGISTER_SERIALIZABLE_COMPONENT(T)
Definition ComponentFactory.hpp:25
Definition serialization.hpp:36
#define REGISTER_SD_COMPONENT(Type)
Registers a SD component for use with ECS.
Definition component_registration.hpp:80
Definition Application.hpp:28
Definition components.hpp:22
VLA::Matrix4x4f proj
Definition components.hpp:24
VLA::Matrix4x4f view
Definition components.hpp:23
static void serialize(const Camera &c, Serializer &s)
Definition components.hpp:31
static void deserialize(Camera &c, Serializer &s)
Definition components.hpp:35
static void deserialize(DebugName &c, Serializer &s)
Definition components.hpp:79
static void serialize(const DebugName &c, Serializer &s)
Definition components.hpp:78
static void serialize(const Renderable &c, Serializer &s)
Definition components.hpp:53
static void deserialize(Renderable &c, Serializer &s)
Definition components.hpp:60
Definition component_registration.hpp:50
Definition components.hpp:70
std::string name
Definition components.hpp:71
Definition components.hpp:41
float color[4]
Definition components.hpp:46
u32 mesh_id
Definition components.hpp:42
u32 material_id
Definition components.hpp:43
i32 render_stage
Definition components.hpp:44
u32 view_mask
Definition components.hpp:45
std::uint32_t u32
Definition types.hpp:15
constexpr T g_type_max
Definition types.hpp:21
std::int32_t i32
Definition types.hpp:10