Example character level animations.
This commit is contained in:
@ -19,4 +19,8 @@ void SimpleTexturedShaderInterface::setTexture(Texture *texture) {
|
||||
|
||||
void SimpleTexturedShaderInterface::setColor(struct Color color) {
|
||||
this->getMaterial()->colorValues[this->getShader()->paramColor] = color;
|
||||
}
|
||||
|
||||
struct Color SimpleTexturedShaderInterface::getColor() {
|
||||
return this->getMaterial()->colorValues[this->getShader()->paramColor];
|
||||
}
|
@ -32,5 +32,12 @@ namespace Dawn {
|
||||
* @param color Color to be used.
|
||||
*/
|
||||
void setColor(struct Color color);
|
||||
|
||||
/**
|
||||
* Returns the current color from the shader.
|
||||
*
|
||||
* @return Current color.
|
||||
*/
|
||||
struct Color getColor();
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user