psychopy.tools.gltools.bindTexture

psychopy.tools.gltools.bindTexture(texture, 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.

Parameters
  • 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