X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2FEntities%2FPolygon.h;fp=src%2FEntities%2FPolygon.h;h=7941f88024d6528a54a5cda241124d54ca6428d1;hp=6624c95932c8954a198fd740b8dcdded78ef33d7;hb=fd1a93a71bc0222dd77f56c145d550cb6f7829bc;hpb=a1a3765dc4eaa4f8dad5d8710c3e6f420d3d2e09 diff --git a/src/Entities/Polygon.h b/src/Entities/Polygon.h index 6624c95..7941f88 100644 --- a/src/Entities/Polygon.h +++ b/src/Entities/Polygon.h @@ -38,12 +38,13 @@ class Polygon: public PhysicsEntity virtual void draw() const; //protected: - Vector2 maxP; // stores the max bounding box point - Vector2 minP; // stores the min bounding box point + Vector2 m_maxP; // stores the max bounding box point + Vector2 m_minP; // stores the min bounding box point - vector points; + vector m_points; - const float* color; + const float* m_color; + private: void createBindingBox(); void centerPosition();