From b1c29c40fdc618ab250292f85d8132474fb8843e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Fri, 24 Oct 2025 14:56:42 -0700 Subject: Fix Pong demo, add notes and TODOs --- include/gfx/llr/llr.h | 6 ++++++ include/gfx/llr/material.h | 1 + 2 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/gfx/llr/llr.h b/include/gfx/llr/llr.h index 098374d..f84b3fb 100644 --- a/include/gfx/llr/llr.h +++ b/include/gfx/llr/llr.h @@ -14,6 +14,9 @@ typedef struct Skeleton Skeleton; typedef struct LLR LLR; +// ----------------------------------------------------------------------------- +// Low-level rendering. + /// Set the shader to be used for subsequent draw calls. /// The shader is not yet activated at this point. void gfx_llr_set_shader(LLR*, ShaderProgram*); @@ -44,6 +47,9 @@ void gfx_llr_set_material(LLR*, const Material*); /// Set the camera. void gfx_llr_set_camera(LLR*, const Camera*); +/// Set the projection matrix. +void gfx_llr_set_projection_matrix(LLR* renderer, const mat4* projection); + /// Set the aspect ratio. void gfx_llr_set_aspect(LLR*, float aspect); diff --git a/include/gfx/llr/material.h b/include/gfx/llr/material.h index bca664e..9ebf9b3 100644 --- a/include/gfx/llr/material.h +++ b/include/gfx/llr/material.h @@ -7,6 +7,7 @@ typedef struct Material Material; /// Describes a material. /// +/// TODO: It doesn't hold the shader program anymore...It's in the Mesh. /// A material holds a shader program and a set of shader-specific uniform /// variables. Two materials can share the same shader, but shader parameters /// generally give two materials a different appearance. -- cgit v1.2.3