summaryrefslogtreecommitdiff
path: root/src/block.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/block.h')
-rw-r--r--src/block.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/block.h b/src/block.h
index f55f784..ad81c47 100644
--- a/src/block.h
+++ b/src/block.h
@@ -2,12 +2,14 @@
#include "cglm/types.h"
#include "glad/glad.h"
#include "shader.h"
+#include "texture.h"
struct block {
vec3 coords;
GLuint _vao;
GLuint _vbo;
GLuint _ebo;
+ GLuint _tbo;
int _vertex_count;
mat4 model;
float angle;
@@ -21,7 +23,7 @@ struct block {
*
*/
int block_init(vec3 pos, struct block* blk);
-int block_draw(struct block* blk, struct shader* shader);
+int block_draw(struct block* blk, struct shader* shader, struct texture* texture);
void block_debug(struct block* blk);
void block_update(struct block* blk);