diff options
author | 3gg <3gg@shellblade.net> | 2025-07-04 10:27:06 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2025-07-04 10:27:06 -0700 |
commit | 1ec46bead3cf87971a2329f9ef4ddde5a0c48325 (patch) | |
tree | 3f4c404467c3ad9c94265295f4aa1b97a10a9eb3 /src/llr/material_impl.h | |
parent | e386405ac636b7e4a41d5c03eb363e9c120ce919 (diff) |
Clarify doc
Diffstat (limited to 'src/llr/material_impl.h')
-rw-r--r-- | src/llr/material_impl.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/llr/material_impl.h b/src/llr/material_impl.h new file mode 100644 index 0000000..f27bf4d --- /dev/null +++ b/src/llr/material_impl.h | |||
@@ -0,0 +1,16 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include <../../include/gfx/llr/material.h> | ||
4 | |||
5 | typedef struct ShaderProgram ShaderProgram; | ||
6 | |||
7 | typedef struct Material { | ||
8 | ShaderUniform uniforms[GFX_MAX_UNIFORMS_PER_MATERIAL]; | ||
9 | int num_uniforms; | ||
10 | } Material; | ||
11 | |||
12 | /// Activate the material. | ||
13 | /// | ||
14 | /// This activates the material's shader and configures the shader uniforms that | ||
15 | /// are specific to the material. | ||
16 | void material_activate(ShaderProgram* shader, const Material* material); | ||