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

@@ -340,8 +340,13 @@ class OSG_EXPORT Program : public osg::StateAttribute
bool removeShader( Shader* shader );
/** Add an attribute location binding. */
void bindAttribLocation( GLuint index, const char* name );
void addBindAttribLocation( const std::string& name, GLuint index );
/** Add an attribute location binding. */
void removeBindAttribLocation( const std::string& name );
typedef std::map<std::string,GLuint> AttribBindingList;
const AttribBindingList& getAttribBindingList() const { return _attribBindingList; }
/** Return true if this Program represents "fixed-functionality" rendering */