X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FEntities%2FPolygon.h;h=7941f88024d6528a54a5cda241124d54ca6428d1;hb=HEAD;hp=314a5ec89f7efe8851805ea8695ffcbe3c4a8d46;hpb=b85b89ba9a2cb0373209e8117046fd308faf0202;p=physics.git diff --git a/src/Entities/Polygon.h b/src/Entities/Polygon.h index 314a5ec..7941f88 100644 --- a/src/Entities/Polygon.h +++ b/src/Entities/Polygon.h @@ -18,8 +18,8 @@ #ifndef POLYGON_H #define POLYGON_H -#include -using namespace pg; +#include +using namespace bear; #include "PhysicsEntity.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();