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
inputComponent.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <glm/glm.hpp>
3
8
// [ReflectClass]
9
struct
InputComponent
{
10
// [ReflectField]
11
glm::vec3
movement
{ 0 };
// forward/back, left/right, up/down
12
// [ReflectField]
13
glm::vec2
look
{ 0 };
// mouse delta
14
};
15
16
17
#include "
meta/ComponentReflection.hpp
"
18
REGISTER_COMPONENT
(
InputComponent
,
"Gameplay/Input"
);
19
ComponentReflection.hpp
REGISTER_COMPONENT
#define REGISTER_COMPONENT(Type, MenuPath)
Definition
ComponentReflection.hpp:156
InputComponent
Component representing input state for an entity (e.g., player or camera).
Definition
inputComponent.hpp:9
InputComponent::look
glm::vec2 look
Definition
inputComponent.hpp:13
InputComponent::movement
glm::vec3 movement
Definition
inputComponent.hpp:11
engine
include
ecs
components
inputComponent.hpp
Generated by
1.17.0