www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 98b907fb2c6615916506b33c3edf8a2a48175fd7
parent 2df4e1d07cfe641bcf32f2702f49665218fa90c5
Author: Georges Dupéron <jahvascriptmaniac+github@free.fr>
Date:   Fri, 20 Jan 2012 02:03:42 +0100

Autopilote.

Diffstat:
Mmain.cpp | 2+-
Mview.cpp | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/main.cpp b/main.cpp @@ -6,7 +6,7 @@ int main(int argc, char* argv[]) { Chose::initialSeed = (unsigned int) atoi(argv[1]); std::cout << "Initial seed = " << Chose::initialSeed << std::endl; - float size = 200 * 100; + float size = 20000 * 100; Vertex ne(+size/2.f, +size/2.f, 0); Vertex se(+size/2.f, -size/2.f, 0); Vertex sw(-size/2.f, -size/2.f, 0); diff --git a/view.cpp b/view.cpp @@ -147,7 +147,7 @@ void View::renderScene(int lastTime, int currentTime) { lod.setCamera(camera.cameraCenter); setLight(); - //setSkybox(); + setSkybox(); glBegin(GL_TRIANGLES); root->display(); @@ -237,7 +237,7 @@ void Camera::mouseMotion(const SDL_MouseMotionEvent &event) { void Camera::keyboard(const SDL_KeyboardEvent &eventKey) { switch(eventKey.keysym.sym) { case SDLK_UP: - up = (eventKey.type == SDL_KEYDOWN); + up = up ^ (eventKey.type == SDL_KEYDOWN); break; case SDLK_DOWN: down = (eventKey.type == SDL_KEYDOWN);