From 753992901e2e3cf851b5030e6298597c7f21b5fa Mon Sep 17 00:00:00 2001 From: David Vereb Date: Wed, 24 May 2017 16:15:38 -0400 Subject: [PATCH] Removed graphic system file. Don't really need it as I wasn't using it to prove anything. --- GraphicsSystem.h | 20 -------------------- main.cpp | 13 ++++++------- 2 files changed, 6 insertions(+), 27 deletions(-) delete mode 100644 GraphicsSystem.h diff --git a/GraphicsSystem.h b/GraphicsSystem.h deleted file mode 100644 index 83ea55f..0000000 --- a/GraphicsSystem.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef GRAPHICSSYSTEM_H -#define GRAPHICSSYSTEM_H - -#include - -#include "GraphicsObject.h" - -class GraphicsSystem -{ -public: - void AddObject(GraphicsObject *obj) - { - objects.push_back(obj); - } - -//private: - std::vector objects; -}; - -#endif diff --git a/main.cpp b/main.cpp index 868523f..7f34582 100644 --- a/main.cpp +++ b/main.cpp @@ -1,22 +1,21 @@ #include - -#include "GraphicsSystem.h" +#include #include "GraphicsObject.h" #include "Ball.h" int main(int argc, char *argv[]) { - GraphicsSystem system; + std::vector objects; GraphicsObject graphics_obj(7); - system.AddObject(&graphics_obj); + objects.push_back(&graphics_obj); Ball ball1; - system.AddObject(&ball1); + objects.push_back(&ball1); Ball ball2; - system.AddObject(&ball2); + objects.push_back(&ball2); - for(auto obj : system.objects) + for(auto obj : objects) for(auto i = 0; i < 5; ++i) std::cout << obj->X() << std::endl; }