rename c files
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user