SDLPP: rectcolider now has min height/width property

This commit is contained in:
2021-05-25 12:18:03 +02:00
parent b75b44201a
commit 7390f684f5
2 changed files with 16 additions and 0 deletions
+3
View File
@@ -32,6 +32,8 @@ public:
virtual void render( Renderer &renderer ) override;
virtual std::shared_ptr< CollisionPolygon > copySelf() override;
virtual std::vector< Line< int > > getLines() const override;
void setMinWidth( int width );
void setMinHeight( int height );
private:
SDL_Rect getRect();
@@ -43,6 +45,7 @@ private:
Vec2D< double > _size;
Vec2D< int > _size_pixel;
Vec2D< int > min_size = {0, 0};
};
} // end of namespace SDLPP
#endif