Changeset 340 for trunk/src


Ignore:
Timestamp:
09/25/14 00:15:32 (11 years ago)
Author:
epyon
Message:
  • new image types for gl (floating point texture support)
  • implicitly using GL_ARB_texture_float
Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gl/gl_enum.cc

    r331 r340  
    174174        switch( format )
    175175        {
    176         case RGB  : return GL_RGB;
    177         case RGBA : return GL_RGBA;
     176        case RGB     : return GL_RGB;
     177        case RGBA    : return GL_RGBA;
     178        case RGB32F  : return GL_RGB;
     179        case RGBA32F : return GL_RGBA;
     180        case RGB16F  : return GL_RGB;
     181        case RGBA16F : return GL_RGBA;
    178182        NV_RETURN_COVERED_DEFAULT( 0 );
    179183        }
     
    184188        switch( format )
    185189        {
    186         case RGB  : return GL_RGB8;
    187         case RGBA : return GL_RGBA8;
    188                 NV_RETURN_COVERED_DEFAULT( 0 );
     190        case RGB     : return GL_RGB8;
     191        case RGBA    : return GL_RGBA8;
     192        case RGB32F  : return GL_RGB32F;
     193        case RGBA32F : return GL_RGBA32F;
     194        case RGB16F  : return GL_RGBA16F;
     195        case RGBA16F : return GL_RGBA16F;
     196        NV_RETURN_COVERED_DEFAULT( 0 );
    189197        }
    190198}
  • trunk/src/sdl/sdl_window.cc

    r336 r340  
    2929        SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
    3030        SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
    31         SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
    3231        SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
    3332
     
    6665        NV_LOG( LOG_INFO, "OpenGL Version      : " << glGetString(GL_VERSION) );
    6766        NV_LOG( LOG_INFO, "OpenGL GLSL Version : " << glGetString(GL_SHADING_LANGUAGE_VERSION) );
    68         // SDL_GL_SetSwapInterval(1);
     67        //SDL_GL_SetSwapInterval(0);
    6968
    7069        // TODO: do we really need this?
Note: See TracChangeset for help on using the changeset viewer.