aboutsummaryrefslogtreecommitdiff
path: root/src/llr/llr_impl.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-07-09 20:19:47 -0700
committer3gg <3gg@shellblade.net>2025-07-09 20:19:47 -0700
commit2f286e9ec9d872625f8f82bbcdcfc588913ec4a3 (patch)
treef7b06552190fa7895b0c2da4705a6e515883fd21 /src/llr/llr_impl.h
parent412be23697b5d3bbb4a6ac879b66dc5971bf7966 (diff)
Track active material in the LLRHEADmain
Diffstat (limited to 'src/llr/llr_impl.h')
-rw-r--r--src/llr/llr_impl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/llr/llr_impl.h b/src/llr/llr_impl.h
index ada2d79..3f6a68f 100644
--- a/src/llr/llr_impl.h
+++ b/src/llr/llr_impl.h
@@ -43,6 +43,7 @@ typedef struct LLR {
43 bool camera_changed : 1; // Whether the camera parameters have changed. 43 bool camera_changed : 1; // Whether the camera parameters have changed.
44 bool lights_changed : 1; // Whether the lights have changed. 44 bool lights_changed : 1; // Whether the lights have changed.
45 bool skeleton_changed : 1; // Whether the skeleton has changed. 45 bool skeleton_changed : 1; // Whether the skeleton has changed.
46 bool material_changed : 1; // Whether the material has changed.
46 bool matrix_changed : 1; // Whether the matrix stack has changed. 47 bool matrix_changed : 1; // Whether the matrix stack has changed.
47 }; 48 };
48 uint8_t changed_flags; 49 uint8_t changed_flags;
@@ -53,6 +54,8 @@ typedef struct LLR {
53 54
54 ShaderProgram* shader; // Active shader. Not owned. 55 ShaderProgram* shader; // Active shader. Not owned.
55 56
57 const Material* material; // Active material. Not owned.
58
56 vec3 camera_position; 59 vec3 camera_position;
57 mat4 camera_rotation; 60 mat4 camera_rotation;
58 mat4 view; // Camera view matrix. 61 mat4 view; // Camera view matrix.