projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hacks that make a polygon draw
[physics.git]
/
src
/
entityCreator.cpp
diff --git
a/src/entityCreator.cpp
b/src/entityCreator.cpp
index
2df4457
..
1b4b6f7
100644
(file)
--- a/
src/entityCreator.cpp
+++ b/
src/entityCreator.cpp
@@
-23,6
+23,7
@@
#include "input/inputManager.h"
#include "Entities/Ball.h"
#include "input/inputManager.h"
#include "Entities/Ball.h"
+#include "Entities/Polygon.h"
#include "graphics/colors.h"
#include "graphics/colors.h"
@@
-78,6
+79,14
@@
void creator::init()
{
addBall(Vector2(200+i*2, 200+i*2), 10, cCyan);
}
{
addBall(Vector2(200+i*2, 200+i*2), 10, cCyan);
}
+
+ // add a polygon into the mix (currently not cleaned up)
+ vector<Vector2> points;
+ points.push_back(Vector2(50,50));
+ points.push_back(Vector2(50,100));
+ points.push_back(Vector2(100,50));
+
+ manager::add(new Polygon(points));
}
void creator::clean()
{
}
void creator::clean()
{