Cleaned up API of BindAttributeLocation, added deletion of shader objects.

This commit is contained in:
Robert Osfield
2005-05-11 11:41:44 +00:00
parent d9c50ee7c4
commit fb34b22e34
4 changed files with 31 additions and 7 deletions

View File

@@ -2034,12 +2034,18 @@ bool Program::removeShader( Shader* shader )
}
void Program::bindAttribLocation( GLuint index, const char* name )
void Program::addBindAttribLocation( const std::string& name, GLuint index )
{
_attribBindingList[name] = index;
dirtyProgram();
}
void Program::removeBindAttribLocation( const std::string& name )
{
_attribBindingList.erase(name);
dirtyProgram();
}
void Program::apply( osg::State& state ) const
{