diff options
author | chai <chaifix@163.com> | 2020-07-18 02:48:39 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-07-18 02:48:39 +0800 |
commit | e5e995103377f9bb79123ef8257d8680ed0945fc (patch) | |
tree | 1831f3d2242c8173075576816b9032001580d20b /src/extend/mesh.h | |
parent | 275bf123ff505eef3333ba41385ed3814eb9a507 (diff) |
*late culling
Diffstat (limited to 'src/extend/mesh.h')
-rw-r--r-- | src/extend/mesh.h | 17 |
1 files changed, 15 insertions, 2 deletions
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); |