Changeset 340 for trunk/src/gl


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
File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.