summaryrefslogtreecommitdiff
path: root/src/extend/mesh.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-07-18 02:48:39 +0800
committerchai <chaifix@163.com>2020-07-18 02:48:39 +0800
commite5e995103377f9bb79123ef8257d8680ed0945fc (patch)
tree1831f3d2242c8173075576816b9032001580d20b /src/extend/mesh.h
parent275bf123ff505eef3333ba41385ed3814eb9a507 (diff)
*late culling
Diffstat (limited to 'src/extend/mesh.h')
-rw-r--r--src/extend/mesh.h17
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);