Changeset 62 for trunk/src


Ignore:
Timestamp:
05/30/13 16:44:38 (12 years ago)
Author:
epyon
Message:
  • type -> etype - to reduce confusion for the compiler
Location:
trunk/src/gl
Files:
4 edited

Legend:

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

    r49 r62  
    6767}
    6868
    69 texture2d* gl_device::create_texture2d( ivec2 size, image_format aformat, type adatatype, sampler asampler, void* data /*= nullptr */ )
     69texture2d* gl_device::create_texture2d( ivec2 size, image_format aformat, etype adatatype, sampler asampler, void* data /*= nullptr */ )
    7070{
    7171        return new gl_texture2d( size, aformat, adatatype, asampler, data );
  • trunk/src/gl/gl_enum.cc

    r49 r62  
    185185}
    186186
    187 unsigned int nv::type_to_gl_enum( type type )
     187unsigned int nv::type_to_gl_enum( etype type )
    188188{
    189189        switch( type )
     
    209209}
    210210
    211 nv::type nv::gl_enum_to_type( unsigned int gl_enum )
     211nv::etype nv::gl_enum_to_type( unsigned int gl_enum )
    212212{
    213213        switch( gl_enum )
     
    229229        case GL_INT_VEC3       : return INT_VECTOR_3;
    230230        case GL_INT_VEC4       : return INT_VECTOR_4;
    231         default : return type(0); // TODO: throw!
    232         }
    233 }
     231        default : return etype(0); // TODO: throw!
     232        }
     233}
  • trunk/src/gl/gl_program.cc

    r41 r62  
    180180
    181181                int uni_loc = glGetUniformLocation( m_name.get_value(), name.c_str() );
    182                 type utype = gl_enum_to_type( uni_type );
     182                etype utype = gl_enum_to_type( uni_type );
    183183                m_uniform_map[ name ] = create_uniform( utype, name, uni_loc, uni_len );
    184184        }
  • trunk/src/gl/gl_texture2d.cc

    r49 r62  
    1010using namespace nv;
    1111
    12 nv::gl_texture2d::gl_texture2d( ivec2 size, image_format aformat, type adatatype, sampler asampler, void* data /*= nullptr */ )
     12nv::gl_texture2d::gl_texture2d( ivec2 size, image_format aformat, etype adatatype, sampler asampler, void* data /*= nullptr */ )
    1313        : texture2d( size, aformat, adatatype, asampler ), m_name()
    1414{
Note: See TracChangeset for help on using the changeset viewer.