summaryrefslogtreecommitdiff
path: root/src/extend/mesh.h
blob: d7a519ea01c95a7843568efea299b57ba821bd89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef _SOFTSHADEROOM_MESH_H_
#define _SOFTSHADEROOM_MESH_H_

#include "../core/vert.h"
/*
typedef struct  {
	Vertex* vertices;
	uint vert_count;
	uint* triangles;
	uint tris_count;
	const char* name;
} SubMesh;
*/
typedef struct {
	Vertex* vertices; 
	uint vert_count;
	uint* triangles; 
	uint tris_count;
	//const char* name;
	/*
	SubMesh* submesh;
	uint submesh_count; 
	*/
} Mesh;

Mesh* mesh_loadfromobj(const char* path);

#endif