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