Mesh.h 325 B

1234567891011121314151617181920
  1. #ifndef MESH_H
  2. #define MESH_H
  3. #include "client/rendering/Triangle.h"
  4. #include "rendering/VertexBuffer.h"
  5. #include "utils/TypedBuffer.h"
  6. class Mesh final {
  7. VertexBuffer vertexBuffer;
  8. int vertices;
  9. public:
  10. Mesh();
  11. bool init();
  12. void build(const TypedBuffer<Triangle>& buffer);
  13. void draw();
  14. };
  15. #endif