SDLPP: rectcolider now has min height/width property
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user