fixing rotation

This commit is contained in:
Clément Le Bihan
2021-06-15 17:28:29 +02:00
parent a3fccd1c67
commit a753e7b0f8
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -44,6 +44,6 @@ namespace RAY {
void Texture::drawOn(RAY::Window &)
{
DrawTextureEx(*this, this->_position, 0, this->_scale, this->_color);
DrawTextureEx(*this, this->_position, this->_rotation, this->_scale, this->_color);
}
}
+3 -3
View File
@@ -75,9 +75,9 @@ namespace BBM
//animation.setAnimIndex(5);
});
scene->addEntity("background image")
.addComponent<Drawable2DComponent, RAY::Texture>(true, "assets/background_game.png", false, 2, 0)
.addComponent<PositionComponent>();
/* scene->addEntity("background image")
.addComponent<Drawable2DComponent, RAY::Texture>(true, "assets/background_game.png", false, 3, 0)
.addComponent<PositionComponent>();*/
scene->addEntity("camera")
.addComponent<PositionComponent>(8, 20, 7)
.addComponent<CameraComponent>(Vector3f(8, 0, 8));