Skip to content

Instantly share code, notes, and snippets.

View JuanDiegoMontoya's full-sized avatar
🫖

Jake Ryan JuanDiegoMontoya

🫖
View GitHub Profile
@JuanDiegoMontoya
JuanDiegoMontoya / a_components_and_reflection.h
Last active February 17, 2025 08:36
Shrimple example of reflection with entt meta, plus a lil' ImGui thingamabob to draw all components.
#include "glm/glm.hpp"
#include "entt/meta/meta.hpp"
#include <unordered_map>
// Components that we want to reflect for a hypothetical game.
struct LocalTransform
{
glm::vec3 position;
glm::quat rotation;