Use one VAO per hex

This commit is contained in:
Phireh 2022-11-19 18:47:17 +01:00
commit 4e375f7e6a
3 changed files with 68 additions and 58 deletions

View file

@ -36,8 +36,14 @@ typedef struct {
} vec4f;
typedef struct {
vec4f position; // center pos
float radius; // side length
vec4f position; // center pos
float radius; // side length
uint32_t vao;
uint32_t ebo;
uint32_t vbo;
float vertices[7*3]; // 7 vert per hex
unsigned int indices[6*3]; // 6 triangles to render a hex
} hex_t;
typedef struct {