- Timestamp:
- 05/30/13 16:44:38 (12 years ago)
- Location:
- trunk/src/gl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_device.cc
r49 r62 67 67 } 68 68 69 texture2d* gl_device::create_texture2d( ivec2 size, image_format aformat, type adatatype, sampler asampler, void* data /*= nullptr */ )69 texture2d* gl_device::create_texture2d( ivec2 size, image_format aformat, etype adatatype, sampler asampler, void* data /*= nullptr */ ) 70 70 { 71 71 return new gl_texture2d( size, aformat, adatatype, asampler, data ); -
trunk/src/gl/gl_enum.cc
r49 r62 185 185 } 186 186 187 unsigned int nv::type_to_gl_enum( type type )187 unsigned int nv::type_to_gl_enum( etype type ) 188 188 { 189 189 switch( type ) … … 209 209 } 210 210 211 nv:: type nv::gl_enum_to_type( unsigned int gl_enum )211 nv::etype nv::gl_enum_to_type( unsigned int gl_enum ) 212 212 { 213 213 switch( gl_enum ) … … 229 229 case GL_INT_VEC3 : return INT_VECTOR_3; 230 230 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 180 180 181 181 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 ); 183 183 m_uniform_map[ name ] = create_uniform( utype, name, uni_loc, uni_len ); 184 184 } -
trunk/src/gl/gl_texture2d.cc
r49 r62 10 10 using namespace nv; 11 11 12 nv::gl_texture2d::gl_texture2d( ivec2 size, image_format aformat, type adatatype, sampler asampler, void* data /*= nullptr */ )12 nv::gl_texture2d::gl_texture2d( ivec2 size, image_format aformat, etype adatatype, sampler asampler, void* data /*= nullptr */ ) 13 13 : texture2d( size, aformat, adatatype, asampler ), m_name() 14 14 {
Note: See TracChangeset
for help on using the changeset viewer.