summaryrefslogtreecommitdiff
path: root/src/block.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/block.h')
-rw-r--r--src/block.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/block.h b/src/block.h
new file mode 100644
index 0000000..46607b4
--- /dev/null
+++ b/src/block.h
@@ -0,0 +1,13 @@
+#pragma once
+#include "cglm/types.h"
+#include "glad/glad.h"
+struct block {
+ vec3 coords;
+ int type;
+ GLuint _vao;
+ GLuint _vbo1;
+ GLuint _vbo2;
+ GLuint _ebo;
+};
+int block_init(vec3 pos, struct block* blk);
+int block_draw(struct block* blk);