From e5e995103377f9bb79123ef8257d8680ed0945fc Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 18 Jul 2020 02:48:39 +0800 Subject: *late culling --- src/extend/mesh.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/extend/mesh.h') diff --git a/src/extend/mesh.h b/src/extend/mesh.h index b9b07f8..6bbb571 100644 --- a/src/extend/mesh.h +++ b/src/extend/mesh.h @@ -2,12 +2,25 @@ #define _SOFTSHADEROOM_MESH_H_ #include "../core/vert.h" - -typedef struct Mesh { +/* +typedef struct { + Vert* vertices; + uint vert_count; + uint* triangles; + uint tris_count; + const char* name; +} SubMesh; +*/ +typedef struct { Vert* vertices; uint vert_count; uint* triangles; uint tris_count; + //const char* name; + /* + SubMesh* submesh; + uint submesh_count; + */ } Mesh; Mesh* mesh_loadfromobj(const char* path); -- cgit v1.1-26-g67d0