From 1a721b98caf7559f4a18baa8d3b92269e8f1f6ce Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Fri, 30 Jan 2026 19:12:03 -0600 Subject: Add basic block textures - Remove the code that sent colors through uniform variables, instead send texture data - Each vertex now has a texture coordinate - struct texture is a easy way to represent textures, can be extended later - Shaders updated to use textures --- src/util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 81c9733..721b1a3 100644 --- a/src/util.h +++ b/src/util.h @@ -1,4 +1,6 @@ #pragma once #include "glad/glad.h" +#include "cglm/types.h" void create_vbo(GLuint *vbo, void* buf, int size); void create_ebo(GLuint *ebo, void* buf, int size); +void create_texture(GLuint* tbo, void* buf, vec2 size); -- cgit