Add files via upload

This commit is contained in:
MihailRis
2021-04-25 16:08:48 +03:00
committed by GitHub
commit e1cdcf01e9
49 changed files with 2866 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef GRAPHICS_MESH_H_
#define GRAPHICS_MESH_H_
#include <stdlib.h>
class Mesh {
unsigned int vao;
unsigned int vbo;
size_t vertices;
size_t vertexSize;
public:
Mesh(const float* buffer, size_t vertices, const int* attrs);
~Mesh();
void reload(const float* buffer, size_t vertices);
void draw(unsigned int primitive);
};
#endif /* GRAPHICS_MESH_H_ */