summaryrefslogtreecommitdiff
path: root/src/extend/mesh.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/extend/mesh.h')
-rw-r--r--src/extend/mesh.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/extend/mesh.h b/src/extend/mesh.h
index d7a519e..6e58a9d 100644
--- a/src/extend/mesh.h
+++ b/src/extend/mesh.h
@@ -2,27 +2,27 @@
#define _SOFTSHADEROOM_MESH_H_
#include "../core/vert.h"
-/*
+
typedef struct {
- Vertex* vertices;
- uint vert_count;
- uint* triangles;
+ uint* triangles; // indices of vertex
uint tris_count;
- const char* name;
+ char name[32];
} SubMesh;
-*/
+
typedef struct {
Vertex* vertices;
uint vert_count;
- uint* triangles;
+ // map to first submesh
+ uint* triangles;
uint tris_count;
- //const char* name;
- /*
+ char name[32];
+ // submeshs
SubMesh* submesh;
uint submesh_count;
- */
} Mesh;
Mesh* mesh_loadfromobj(const char* path);
+void free_mesh(Mesh* mesh);
+
#endif \ No newline at end of file