currentTexture

fun currentTexture(textureUnit: Int): KglTexture

Returns the name of the OpenGL texture 2D object currently bound to the specified multitexture unit.

Return

the currently bound texture 2D object, or 0 if no texture object is bound

Parameters

textureUnit

the multitexture unit, one of GL_TEXTUREi, where i ranges from 0 to 32.


Returns the name of the OpenGL texture 2D object currently bound to the active multitexture unit. The active multitexture unit may be determined by calling currentTextureUnit.