Ignore:
Timestamp:
06/01/13 00:24:07 (12 years ago)
Author:
epyon
Message:
  • etype -> datatype
  • types clarifications, and datatype_traits
File:
1 edited

Legend:

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

    r62 r70  
    156156                int attr_loc = glGetAttribLocation( m_name.get_value(), name.c_str() );
    157157
    158                 m_attribute_map[ name ] = new attribute( name, attr_loc, gl_enum_to_type( attr_type ), attr_len );
     158                m_attribute_map[ name ] = new attribute( name, attr_loc, gl_enum_to_datatype( attr_type ), attr_len );
    159159        }
    160160}
     
    180180
    181181                int uni_loc = glGetUniformLocation( m_name.get_value(), name.c_str() );
    182                 etype utype = gl_enum_to_type( uni_type );
     182                datatype utype = gl_enum_to_datatype( uni_type );
    183183                m_uniform_map[ name ] = create_uniform( utype, name, uni_loc, uni_len );
    184184        }
Note: See TracChangeset for help on using the changeset viewer.