Improved Binding of textures

This commit is contained in:
Robert 2021-01-21 16:27:41 +01:00
parent 8174ebaee4
commit f1f076acf4
5 changed files with 27 additions and 4 deletions

View file

@ -59,6 +59,16 @@ namespace oglu
*/
void Bind();
/**
* @brief Sets active texture and binds this texture.
*
* In order to use multiple textures in the same shader the active texture unit needs to be specified.
* This function first sets the active texture unit and then binds the texture.
*
* @param[in] index Index of the texture unit (Note: This index is actually an offset to @p GL_TEXTURE0)
*/
void BindAs(GLbyte index);
/**
* @brief Unbind this texture.
*/