summaryrefslogtreecommitdiff
path: root/src/block.h
diff options
context:
space:
mode:
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);