From bd57f345ed9dbed1d81683e48199626de2ea9044 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Fri, 27 Jun 2025 10:18:39 -0700 Subject: Restructure project --- src/scene/material_impl.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/scene/material_impl.h (limited to 'src/scene/material_impl.h') diff --git a/src/scene/material_impl.h b/src/scene/material_impl.h new file mode 100644 index 0000000..a6aa95b --- /dev/null +++ b/src/scene/material_impl.h @@ -0,0 +1,16 @@ +#pragma once + +#include + +typedef struct ShaderProgram ShaderProgram; + +typedef struct Material { + ShaderUniform uniforms[GFX_MAX_UNIFORMS_PER_MATERIAL]; + int num_uniforms; +} Material; + +/// Activate the material. +/// +/// This activates the material's shader and configures the shader uniforms that +/// are specific to the material. +void material_activate(ShaderProgram* shader, const Material* material); -- cgit v1.2.3