From 955ffb0d4a0235532fdb9b808745bcf571735122 Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Sun, 25 Jan 2026 18:06:13 -0600 Subject: rotating cube --- src/block.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/block.h') 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); -- cgit