summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/daw/rendering.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/include/daw/rendering.h b/src/include/daw/rendering.h
index 0da97f5..9f53f78 100644
--- a/src/include/daw/rendering.h
+++ b/src/include/daw/rendering.h
@@ -130,15 +130,11 @@ typedef struct {
}
typedef struct {
- /* Shader proram */
+ /* Shader program */
Shader shader;
/* Vertex Array Object */
u32 vao;
- /* MVP (a uniform from the shader).
- * This could also probably be generalized */
- i32 mvp;
-
// The texture ID, glBindTextures(target, &this->texture)
u32 texture;
@@ -147,6 +143,12 @@ typedef struct {
// The vertex buffer is also just a buffer
ShaderBuffer* buffer;
+
+ // Uniforms
+ /* MVP (a uniform for the shader).
+ * This could also probably be generalized */
+ i32 mvp;
+ i32 model_position;
} RenderObject;
typedef struct {