Initial Commit with small working example.

This commit is contained in:
David Vereb
2017-05-23 16:40:02 -04:00
commit b0e17c96d3
7 changed files with 124 additions and 0 deletions

22
main.cpp Normal file
View File

@@ -0,0 +1,22 @@
#include <iostream>
#include "GraphicsSystem.h"
#include "GraphicsObject.h"
#include "Ball.h"
int main(int argc, char *argv[])
{
GraphicsSystem system;
GraphicsObject graphics_obj(7);
system.AddObject(&graphics_obj);
Ball ball1;
system.AddObject(&ball1);
Ball ball2;
system.AddObject(&ball2);
for(auto obj : system.objects)
for(auto i = 0; i < 5; ++i)
std::cout << obj->X() << std::endl;
}