| 12345678910111213141516171819202122232425262728293031323334 | 
							- #ifndef MESH_H
 
- #define MESH_H
 
- #include "data/List.h"
 
- #include "rendering/VertexBuffer.h"
 
- #include "utils/TypedBuffer.h"
 
- struct Mesh final {
 
-     struct VertexData final {
 
-         float x;
 
-         float y;
 
-         float z;
 
-         float tx;
 
-         float ty;
 
-         float nx;
 
-         float ny;
 
-         float nz;
 
-     };
 
- private:
 
-     VertexBuffer vertexBuffer;
 
-     TypedBuffer<VertexData> buffer;
 
- public:
 
-     Mesh();
 
-     void add(const VertexData& data);
 
-     void clear();
 
-     void build();
 
-     void draw();
 
- };
 
- #endif
 
 
  |