voxels renderer rebuilt, WorldFiles fix

This commit is contained in:
MihailRis
2023-11-02 13:23:52 +03:00
committed by GitHub
parent 0576316282
commit 754c5b80d0
44 changed files with 1141 additions and 524 deletions
+9 -1
View File
@@ -2,6 +2,11 @@
#define GRAPHICS_MESH_H_
#include <stdlib.h>
#include "../typedefs.h"
struct vattr {
ubyte size;
};
class Mesh {
unsigned int vao;
@@ -9,11 +14,14 @@ class Mesh {
size_t vertices;
size_t vertexSize;
public:
Mesh(const float* buffer, size_t vertices, const int* attrs);
Mesh(const float* buffer, size_t vertices, const vattr* attrs);
~Mesh();
void reload(const float* buffer, size_t vertices);
void draw(unsigned int primitive);
void draw();
static int meshesCount;
};
#endif /* GRAPHICS_MESH_H_ */