summaryrefslogtreecommitdiffstats
path: root/DisplayClass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DisplayClass.cpp')
-rw-r--r--DisplayClass.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/DisplayClass.cpp b/DisplayClass.cpp
index 9cae95c..30abdcb 100644
--- a/DisplayClass.cpp
+++ b/DisplayClass.cpp
@@ -11,8 +11,8 @@ void DisplayClass::renderScene(unsigned long delta)
//Cuboid cube2(1, 1, 2, -0.5, 0.5, -1.5);
static const Cuboid dc(0.8, 2, 0.8);
- static const float xs[5] = {-2.5, -1.5, -0.5, 0.5, 1.5};
- static const float zs[5] = {-1.5, -0.5, 0.5, 1.5, 2.5};
+ static const float xs[5] = {-2.0, -1.0, 0.0, 1.0, 2.0};
+ static const float zs[5] = {-2.0, -1.0, 0.0, 1.0, 2.0};
Cuboid cubes[5][5] = {
{dc, dc, dc, dc, dc},
@@ -24,7 +24,7 @@ void DisplayClass::renderScene(unsigned long delta)
for(int i = 0; i < 5; ++i) {
for(int j = 0; j < 5; ++j) {
- cubes[i][j].setPos(xs[j], 1.0, zs[i]);
+ cubes[i][j].setPos(xs[j], 0.0, zs[i]);
}
}
/* {Cuboid(2, 1, 1, -2.5, 1.0, -1.5), Cuboid(2, 1, 1, -1.5, 1.0, -1.5), Cuboid(2, 1, 1, -0.5, 1.0, -1.5), Cuboid(2, 1, 1, 0.5, 1.0, -1.5), Cuboid(2, 1, 1, 1.5, 1.0, -1.5)},
@@ -33,7 +33,7 @@ void DisplayClass::renderScene(unsigned long delta)
{Cuboid(2, 1, 1, -2.5, 1.0, 1.5), Cuboid(2, 1, 1, -1.5, 1.0, -1.5), Cuboid(2, 1, 1, -0.5, 1.0, -1.5), Cuboid(2, 1, 1, 0.5, 1.0, -1.5), Cuboid(2, 1, 1, 1.5, 1.0, 1.5)},
{Cuboid(2, 1, 1, -2.5, 1.0, 2.5), Cuboid(2, 1, 1, -1.5, 1.0, 2.5), Cuboid(2, 1, 1, -0.5, 1.0, 2.5), Cuboid(2, 1, 1, 0.5, 1.0, 2.5), Cuboid(2, 1, 1, 1.5, 1.0, 2.5)}};*/
static float angle = 0.0;
- angle += delta*0.043;
+ angle += delta*0.05;
if(angle >= 360)
angle -= 360;