Example character level animations.

This commit is contained in:
2023-01-18 23:53:39 -08:00
parent 821074dfc4
commit 985218b9bc
29 changed files with 388 additions and 44 deletions

View File

@ -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];
}

View File

@ -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();
};
}