From 540d4d3448ae86c1a47b8b1720d4df0dbade5d02 Mon Sep 17 00:00:00 2001 From: SoloArchx250 Date: Thu, 28 May 2020 15:27:39 -0400 Subject: [PATCH] renamed vertex to vector, cubes aren't needed in 2d --- src/Cube.cpp | 40 ---------------------------------------- src/Cube.h | 26 -------------------------- src/Vertex.cpp | 11 ----------- src/Vertex.h | 6 ------ 4 files changed, 83 deletions(-) delete mode 100644 src/Cube.cpp delete mode 100644 src/Cube.h delete mode 100644 src/Vertex.cpp delete mode 100644 src/Vertex.h diff --git a/src/Cube.cpp b/src/Cube.cpp deleted file mode 100644 index f65b20c..0000000 --- a/src/Cube.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include "Cube.h" - -Cube::Cube(Vertex backTopLeft, - Vertex backTopRight, - Vertex backBottomRight, - Vertex backBottomLeft, - Vertex frontTopLeft, - Vertex frontTopRight, - Vertex frontBottomRight, - Vertex frontBottomLeft -) { - this->btl=backTopLeft; - this->btr=backTopRight; - this->bbr=backBottomRight; - this->bbl=backBottomLeft; - this->ftl=frontTopRight; - this->ftl=frontTopRight; - this->fbl=frontBottomLeft; - this->fbr=frontBottomRight; -} - -Cube::Cube( - Quad left, - Quad top, - Quad right, - Quad bottom, - Quad front, - Quad back -) { - this->left=left; - this->top=top; - this->right=right; - this->bottom=bottom; - this->front=front; - this->back=back; -} - -void Cube::setColor(myColor c) { - this->color=c; -} \ No newline at end of file diff --git a/src/Cube.h b/src/Cube.h deleted file mode 100644 index 9ab9c7b..0000000 --- a/src/Cube.h +++ /dev/null @@ -1,26 +0,0 @@ -#include "Quad.h" - -class Cube { - public: - myColor color; - Quad left,top,right,bottom,back,front; - Vertex btl,btr,bbr,bbl,ftl,ftr,fbr,fbl; - - Cube(Vertex backTopLeft, - Vertex backTopRight, - Vertex backBottomRight, - Vertex backBottomLeft, - Vertex frontTopLeft, - Vertex frontTopRight, - Vertex frontBottomRight, - Vertex frontBottomLeft - ); - Cube(Quad left, - Quad top, - Quad right, - Quad bottom, - Quad front, - Quad back - ); - void setColor(myColor c); -}; \ No newline at end of file diff --git a/src/Vertex.cpp b/src/Vertex.cpp deleted file mode 100644 index a2b8180..0000000 --- a/src/Vertex.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include "Vertex.h" -#include - -Vertex::Vertex(float x, float y, float z) { - this->x=x; - this->y=y; - this->z=z; - printf("Created a vertex at %f,%f,%f\n",x,y,z); -} - -Vertex::Vertex() {} \ No newline at end of file diff --git a/src/Vertex.h b/src/Vertex.h deleted file mode 100644 index 51c0c21..0000000 --- a/src/Vertex.h +++ /dev/null @@ -1,6 +0,0 @@ -class Vertex { - public: - float x,y,z; - Vertex(); - Vertex(float x, float y, float z); -}; \ No newline at end of file