From 9581542002a57f72afcbaebfe1ae6fc3b4021400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20Ri=C3=9F?= Date: Thu, 3 Dec 2009 22:10:37 +0100 Subject: =?UTF-8?q?'Trapezocube'=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 1 + DisplayClass.cpp | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8021c91..1f656ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,7 @@ add_executable(c3d main.cpp Matrix.h Triangle.h + Trapezocube.cpp Trapezocube.h Vector.h Vertex.h ) diff --git a/DisplayClass.cpp b/DisplayClass.cpp index 0822058..96ae6a4 100644 --- a/DisplayClass.cpp +++ b/DisplayClass.cpp @@ -1,7 +1,8 @@ #include "DisplayClass.h" #include "Matrix.h" #include "gl.h" -#include +#include +#include "Trapezocube.h" DisplayClass::DisplayClass() { @@ -19,9 +20,10 @@ DisplayClass::DisplayClass() { void DisplayClass::renderScene(unsigned long delta) { - Cubehole cubeing(1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.5, 0.5); +// Cubehole cubeing(3.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.5); + Trapezocube cubeing(2.0, 1.5, 3.0, 0.5, 0.0, 0.0, 0.0, 90); static float angle = 0.0; - angle += delta*0.05; + angle += delta*0.005; if(angle >= 360) angle -= 360; -- cgit v1.2.3