 | TextureBindToTextureUnit Method |
Actives a texture unit and binds this texture to that unit.
Namespace:
Ooogles
Assembly:
Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic void BindToTextureUnit(
int textureUnit
)
Public Sub BindToTextureUnit (
textureUnit As Integer
)
public:
void BindToTextureUnit(
int textureUnit
)
member BindToTextureUnit :
textureUnit : int -> unit
Parameters
- textureUnit
- Type: SystemInt32
index of the texture unit to make active.
The number of texture units is implementation dependent, but must be at least 8.
ExceptionsException | Condition |
---|
GLException | InvalidEnum if textureUnit is greater than the number of supported texture units. |
Remarks
Once the texture unit is active, it binds the texture by calling
Bind.
OpenGL API: glActiveTexture, glBindTexture
See Also