bind-texture-unit ( id target unit -- )
Factor handbook » UI framework » Implementing new gadgets » Customizing gadget appearance » Implementing custom drawing logic » OpenGL utility words

Prev:gl-translate ( point -- )
Next:do-enabled ( what quot -- )


Vocabulary
opengl

Inputs
idThe id of a texture object.
targetThe texture target (e.g., GL_TEXTURE_2D)
unitThe texture unit to bind (e.g., GL_TEXTURE0)


Outputs
None

Word description
Binds texture id to texture target target of texture unit unit. Equivalent to unit glActiveTexture target id glBindTexture.

Definition