Changeset 206


Ignore:
Timestamp:
Sep 10, 2010, 12:26:39 AM (10 years ago)
Author:
sam
Message:

Activate depth buffer when the GL context is created.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gtk/glmapview.cpp

    r186 r206  
    3131        GDK_GL_GREEN_SIZE, 1,
    3232        GDK_GL_BLUE_SIZE, 1,
     33        GDK_GL_DEPTH_SIZE, 16,
    3334        GDK_GL_DOUBLEBUFFER,
    3435        GDK_GL_NONE
  • trunk/src/scene.cpp

    r150 r206  
    100100    f += 0.05f;
    101101    glTranslatef(320.0f, 240.0f, 0.0f);
    102     glRotatef(45.0f, 1.0f, 0.0f, 0.0f);
     102    glRotatef(-45.0f, 1.0f, 0.0f, 0.0f);
    103103#if 0
    104104    glRotatef(3.0f * sinf(f), 1.0f, 0.0f, 0.0f);
  • trunk/src/test-map.cpp

    r203 r206  
    3131    }
    3232
     33    SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
     34    SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
    3335    SDL_Surface *video = SDL_SetVideoMode(640, 480, 0, SDL_OPENGL);
    3436    if (!video)
Note: See TracChangeset for help on using the changeset viewer.