rename c files

This commit is contained in:
2025-11-22 12:38:13 +01:00
parent 737ff6ff3a
commit 1dd8020cbb
19 changed files with 96 additions and 77 deletions

View File

@@ -9,15 +9,17 @@ enum EntityFlags {
EntityFlags_Render=1<<2,
};
typedef struct {
typedef struct Entity Entity;
struct Entity {
Mesh *mesh;
Texture *tex;
uint32 graphNodeHandle;
uint64 flags;
} Entity;
};
DefineList(Entity, Entity);
typedef struct {
typedef struct SceneGraphNode SceneGraphNode;
struct SceneGraphNode {
Matrix local;
Matrix world;
RLVector3 translation;
@@ -26,14 +28,15 @@ typedef struct {
HandleList children;
uint32 entityHandle;
uint32 parentHandle;
} SceneGraphNode;
};
DefineList(SceneGraphNode, SceneGraphNode);
typedef struct {
typedef struct Scene Scene;
struct Scene {
uint32 sceneRoot;
EntityList entities;
SceneGraphNodeList graphNodes;
} Scene;
};
uint32 createEntity(Arena *arena, Scene *s);
Entity *getEntity(Scene *s, uint32 id);