| 799 | } |
| 800 | |
| 801 | void LAppModel::SetSpriteColor(float r, float g, float b, float a) |
| 802 | { |
| 803 | if (_renderSprite != NULL) |
| 804 | { |
| 805 | _renderSprite->getSprite()->setColor(Color3B(static_cast<unsigned char>(255.0f * r), static_cast<unsigned char>(255.0f * g), static_cast<unsigned char>(255.0f * b))); |
| 806 | _renderSprite->getSprite()->setOpacity(static_cast<unsigned char>(255.0f * a)); |
| 807 | } |
| 808 | } |
no test coverage detected