Mesh.h 339 B

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