diff options
Diffstat (limited to 'DisplayClass.cpp')
-rw-r--r-- | DisplayClass.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/DisplayClass.cpp b/DisplayClass.cpp index d5d6b50..712251a 100644 --- a/DisplayClass.cpp +++ b/DisplayClass.cpp @@ -48,9 +48,11 @@ DisplayClass::DisplayClass(int x, int y, int z) : angle(0) { std::list<Triangle> t5 = cubehole5.getTriangles(); triangles.splice(triangles.end(), t5);*/ - Temparray temp(20, x, y, z); - triangles=temp.getTriangles(); - +// Temparray temp(20, x, y, z); +// triangles=temp.getTriangles(); +this->x=x; +this->y=y; +this->z=z; //tree = new BSPTree(triangles); } @@ -72,6 +74,11 @@ void DisplayClass::renderScene(unsigned long delta) { glRotatef(angle*3, 0.0, 0.0, 1.0); glRotatef(-angle*5, 1.0, 1.0, 1.0); + + Temparray temp(20, x, y, z); + triangles=temp.getTriangles(); + temp.calcTemp(); + //vmml::mat4f transform, inverseTransform; //glGetFloatv(GL_MODELVIEW_MATRIX, transform.array); |