Crimson Engine
1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Toggle main menu visibility
Loading...
Searching...
No Matches
Renderable.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <glm/glm.hpp>
3
8
// [ReflectClass]
9
struct
Renderable
{
11
// [ReflectField]
12
uint32_t
meshID
;
14
// [ReflectField]
15
uint32_t
materialID
;
16
};
17
18
19
20
#include "
meta/ComponentReflection.hpp
"
21
REGISTER_COMPONENT
(
Renderable
,
"Rendering & Lights"
);
ComponentReflection.hpp
REGISTER_COMPONENT
#define REGISTER_COMPONENT(Type, MenuPath)
Definition
ComponentReflection.hpp:156
Renderable
Component that associates an entity with a mesh and material for rendering.
Definition
Renderable.hpp:9
Renderable::materialID
uint32_t materialID
Material asset ID for surface shading and texturing.
Definition
Renderable.hpp:15
Renderable::meshID
uint32_t meshID
GPU mesh handle ID for rendering geometry.
Definition
Renderable.hpp:12
engine
include
ecs
components
Renderable.hpp
Generated by
1.17.0