Initial Commit with small working example.
This commit is contained in:
22
main.cpp
Normal file
22
main.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user