The Material class wraps loading uniform data used as material coefficients.
More...
#include <material.h>
The Material class wraps loading uniform data used as material coefficients.
terminus::Material::Material |
( |
| ) |
|
terminus::Material::Material |
( |
const std::map< std::string, QVector4D > & |
uniforms | ) |
|
terminus::Material::~Material |
( |
| ) |
|
|
virtual |
void terminus::Material::setUniforms |
( |
Program & |
program | ) |
|
|
virtual |
Provides all stored materials as a uniform for the given program.
- Parameters
-
program | All stored uniforms are send to the program, which itself is checking, whether the provided uniform is needed. |
std::map<std::string,QVector4D> terminus::Material::m_uniforms |
|
protected |
The documentation for this class was generated from the following files: