Ignore:
Timestamp:
08/25/15 18:47:28 (10 years ago)
Author:
epyon
Message:
  • camera/device/uniform - modelview_inv added
  • image_data/context/texture/device/enum - DEPTH format support added
File:
1 edited

Legend:

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

    r461 r462  
    185185        case BGRA    : return GL_BGRA;
    186186        case RED     : return GL_RED;
     187        case DEPTH16 : return GL_DEPTH_COMPONENT;
     188        case DEPTH24 : return GL_DEPTH_COMPONENT;
     189        case DEPTH32 : return GL_DEPTH_COMPONENT;
    187190        NV_RETURN_COVERED_DEFAULT( 0 );
    188191        }
     
    202205        case BGRA    : return GL_RGBA8;
    203206        case RED     : return 0x8040; // GL_LUMINANCE8; // TODO: change to GL_R8!
    204 
     207        case DEPTH16 : return GL_DEPTH_COMPONENT16;
     208        case DEPTH24 : return GL_DEPTH_COMPONENT24;
     209        case DEPTH32:  return GL_DEPTH_COMPONENT32;
    205210        NV_RETURN_COVERED_DEFAULT( 0 );
    206211        }
Note: See TracChangeset for help on using the changeset viewer.