From fcf6abaccec7c7ed2fd306a9cf1ec378f303297c Mon Sep 17 00:00:00 2001 From: majortom6 Date: Sun, 19 Feb 2017 10:41:00 -0600 Subject: -refractoring of includes --- inc/opengl/graphicsdata.hpp | 66 +++++++++++++++++---------------------------- 1 file changed, 25 insertions(+), 41 deletions(-) (limited to 'inc/opengl/graphicsdata.hpp') diff --git a/inc/opengl/graphicsdata.hpp b/inc/opengl/graphicsdata.hpp index df8d76e..a0398dc 100644 --- a/inc/opengl/graphicsdata.hpp +++ b/inc/opengl/graphicsdata.hpp @@ -1,49 +1,33 @@ #ifndef graphicsdata_h #define graphicsdata_h -#include -#include - -#include "camera.hpp" - class GraphicsData { - public: - - float x; - float y; - float r; - float g; - float b; - float sides; - - GraphicsData(){ - this->x = 0; - this->y = 0; - this->r = 0; - this->g = 0; - this->b = 0; - this->sides = 0; - } - - - GraphicsData(float x,float y,float r,float g,float b,float sides){ - this->x = 0; - this->y = 0; - this->r = 0; - this->g = 0; - this->b = 0; - this->sides = 0; - } - - float getX(){ - return x; - } - - float getY(){ - return y; - } - + public: + GraphicsData(){ + this->x = 0; + this->y = 0; + this->r = 0; + this->g = 0; + this->b = 0; + this->sides = 0; + } + + GraphicsData(float x1, float y1, float r1, float g1, float b1, float sides1){ + this->x = x1; + this->y = y1; + this->r = r1; + this->g = g1; + this->b = b1; + this->sides = sides1; + } + + float x; + float y; + float r; + float g; + float b; + float sides; }; #endif -- cgit v1.2.3