SDLPP: add option to specify render object alignment

This commit is contained in:
2021-04-27 15:54:30 +02:00
parent fc1d06a2b8
commit e5d0610f6d
11 changed files with 66 additions and 83 deletions
-2
View File
@@ -74,13 +74,11 @@ public:
virtual int collisionHeight() override;
virtual void updateSizeAndPosition() override;
virtual SDL_Rect getRect() override;
virtual void centerX() override;
virtual std::shared_ptr< RenderObject > copySelf() override;
std::string getColor() const;
protected:
virtual void copyTo( std::shared_ptr< RenderObject > other ) override;
void updateXY();
Vec2D< double > original_size;
Vec2D< double > size;
std::string color = "";