26 lines
		
	
	
		
			437 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			437 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef _MESH3D
 | |
| #define _MESH3D
 | |
| 
 | |
| #include "Texture2D.h"
 | |
| #include <vector>
 | |
| #include <string>
 | |
| 
 | |
| namespace djalim {
 | |
| 
 | |
|   class Mesh3D {
 | |
|     public:
 | |
|       Mesh3D();
 | |
|       Mesh3D(const std::string& filepath);
 | |
|       std::vector<float> meshVertices;
 | |
|       int numMeshVertices = 0;
 | |
|       int numFaces = 0;
 | |
|       void loadOBJFile(const std::string& filepath);
 | |
|       Texture2D texture;
 | |
|       GLuint VBO;
 | |
|       GLuint VAO;
 | |
|   };
 | |
| }
 | |
| 
 | |
| #endif // !_MESH3D
 | |
| 
 |