Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Autopilote.

  • Loading branch information...
commit 98b907fb2c6615916506b33c3edf8a2a48175fd7 1 parent 2df4e1d
@jsmaniac authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  main.cpp
  2. +2 −2 view.cpp
View
2  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);
View
4 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);
Please sign in to comment.
Something went wrong with that request. Please try again.