summaryrefslogtreecommitdiff
path: root/src/block.h
diff options
context:
space:
mode:
authorAaditya Dhruv <[email protected]>2026-01-25 18:06:13 -0600
committerAaditya Dhruv <[email protected]>2026-01-25 18:06:13 -0600
commit955ffb0d4a0235532fdb9b808745bcf571735122 (patch)
tree7b6dce22f1af65411ba27cfae88a4e4d9927d862 /src/block.h
parent118980e02e59ff31871df59dce257075394f3533 (diff)
rotating cube
Diffstat (limited to 'src/block.h')
-rw-r--r--src/block.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/block.h b/src/block.h
index 46607b4..00668f6 100644
--- a/src/block.h
+++ b/src/block.h
@@ -1,13 +1,20 @@
#pragma once
#include "cglm/types.h"
#include "glad/glad.h"
+#include "shader.h"
+
struct block {
- vec3 coords;
+ vec3 coords;
int type;
GLuint _vao;
GLuint _vbo1;
GLuint _vbo2;
GLuint _ebo;
+ int _vertex_count;
+ mat4 model;
+ mat4 view;
+ mat4 perspective;
+ float angle;
};
int block_init(vec3 pos, struct block* blk);
-int block_draw(struct block* blk);
+int block_draw(struct block* blk, struct shader* shader);