aboutsummaryrefslogtreecommitdiff
path: root/src/llr/material_impl.h
blob: 2b7cd89066ff2316da1a802123c483819787eaef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include <gfx/llr/material.h>

typedef struct ShaderProgram ShaderProgram;

typedef struct Material {
  ShaderUniform uniforms[GFX_MAX_UNIFORMS_PER_MATERIAL];
  int           num_uniforms;
} Material;

/// Activate the material.
///
/// This configures the shader uniforms that are specific to the material.
void gfx_material_activate(ShaderProgram* shader, const Material* material);