, unit=None, enable=True)[source]

Bind a texture.

Function binds texture to unit (if specified). If unit is None, the texture will be bound but not assigned to a texture unit.

  • texture (TexImage2D) – Texture descriptor to bind.

  • unit (int, optional) – Texture unit to associated the texture with.

  • enable (bool) – Enable textures upon binding.

Back to top