hacks that make a polygon draw
[physics.git] / src / entityCreator.cpp
index 2df4457..1b4b6f7 100644 (file)
@@ -23,6 +23,7 @@
 #include "input/inputManager.h"
 
 #include "Entities/Ball.h"
+#include "Entities/Polygon.h"
 #include "graphics/colors.h"
 
 
@@ -78,6 +79,14 @@ void creator::init()
     {
         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()
 {