Ignore:
Timestamp:
05/29/15 17:28:16 (10 years ago)
Author:
epyon
Message:
  • oops, missed src : got rid of to_string and other std::string utilities (except slurp) string no longer in nv namespace
File:
1 edited

Legend:

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

    r365 r380  
    217217}
    218218
    219 uniform_base* nv::gl_device::get_uniform( program p, const string& name, bool fatal /*= true */ ) const
     219uniform_base* nv::gl_device::get_uniform( program p, const std::string& name, bool fatal /*= true */ ) const
    220220{
    221221        const gl_program_info* info = m_programs.get( p );
     
    235235}
    236236
    237 int nv::gl_device::get_attribute_location( program p, const string& name, bool fatal /*= true */ ) const
     237int nv::gl_device::get_attribute_location( program p, const std::string& name, bool fatal /*= true */ ) const
    238238{
    239239        const gl_program_info* info = m_programs.get( p );
     
    347347                glGetActiveAttrib( p->glid, i, 128, &attr_nlen, &attr_len, &attr_type, name_buffer );
    348348
    349                 string name( name_buffer, size_t(attr_nlen) );
     349                std::string name( name_buffer, size_t( attr_nlen ) );
    350350
    351351                // skip built-ins
     
    376376                glGetActiveUniform( p->glid, i, 128, &uni_nlen, &uni_len, &uni_type, name_buffer );
    377377
    378                 string name( name_buffer, size_t(uni_nlen) );
     378                std::string name( name_buffer, size_t( uni_nlen ) );
    379379
    380380                // skip built-ins
     
    385385
    386386                // check for array
    387                 string::size_type arrchar = name.find('[');
    388                 if ( arrchar != string::npos )
     387                std::string::size_type arrchar = name.find( '[' );
     388                if ( arrchar != std::string::npos )
    389389                {
    390390                        name = name.substr( 0, arrchar );
Note: See TracChangeset for help on using the changeset viewer.