projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
finished changes to deps directory building
[physics.git]
/
src
/
Entities
/
Polygon.h
diff --git
a/src/Entities/Polygon.h
b/src/Entities/Polygon.h
index
6b115fc
..
7941f88
100644
(file)
--- a/
src/Entities/Polygon.h
+++ b/
src/Entities/Polygon.h
@@
-18,7
+18,8
@@
#ifndef POLYGON_H
#define POLYGON_H
#ifndef POLYGON_H
#define POLYGON_H
-#include <pg/Vector2.h>
+#include <bear/Vector2.h>
+using namespace bear;
#include "PhysicsEntity.h"
#include "PhysicsEntity.h"
@@
-37,12
+38,13
@@
class Polygon: public PhysicsEntity
virtual void draw() const;
//protected:
virtual void draw() const;
//protected:
- Vector2 maxP; // stores the max bounding box point
- Vector2 minP; // stores the min bounding box point
+ Vector2 m
_m
axP; // stores the max bounding box point
+ Vector2 m
_m
inP; // stores the min bounding box point
- vector<Vector2> points;
+ vector<Vector2>
m_
points;
- const float* color;
+ const float* m_color;
+
private:
void createBindingBox();
void centerPosition();
private:
void createBindingBox();
void centerPosition();