11#include "../Utils.hpp"
14namespace Engine::Graphics {
16 enum MaterialParameterType {
47 std::map<const char*, MaterialParameterType> m_parameters;
48 std::map<const char*, void*> m_parameterValues;
Success
A generic success type.
Definition Utils.hpp:29
an semi-abstract class that represents a material to a shader
Definition Material.hpp:43
void * SetParameter(const char *name, void *value)
Sets the value of a parameter.
Definition Material.cpp:19
Engine::Success ApplyMaterialParams()
Applies both the material values to the shader.
Definition Material.cpp:28
Shader * GetShader()
Gets the shader used by the material.
Definition Material.cpp:60
void CreateParameter(const char *name, MaterialParameterType type)
Creates a parameter for the material.
Definition Material.cpp:15
A class used to load and use shaders.
Definition Shader.hpp:37