Package glitter :: Package contexts :: Module textures :: Class TextureUnit
[hide private]
[frames] | no frames]

Class TextureUnit

source code

              object --+        
                       |        
  utils.objects.GLObject --+    
                           |    
              object --+   |    
                       |   |    
utils.objects.StateMixin --+    
                           |    
utils.objects.BindableObject --+
                               |
                              TextureUnit

Proxy for a texture unit.


Warning: For internal use by TextureUnitList only. Do not instantiate or use directly; use the methods of TextureUnitList instead.

Instance Methods [hide private]
 
__init__(self, context, _id)
Create a new BindableObject.
source code
 
__str__(self)
str(x)
source code
 
activate(self) source code
 
is_available(self) source code

Inherited from utils.objects.BindableObject: __enter__, __exit__, bind

Inherited from utils.objects.StateMixin: __call__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  _binding = 'active_texture'
Name of the corresponding property in the Context.
  texture_binding_1d = proxy for glBindTexture(GL_TEXTURE_1D)
  texture_binding_1d_array = proxy for glBindTexture(GL_TEXTURE_...
  texture_binding_2d = proxy for glBindTexture(GL_TEXTURE_2D)
  texture_binding_2d_array = proxy for glBindTexture(GL_TEXTURE_...
  texture_binding_2d_multisample = proxy for glBindTexture(GL_TE...
  texture_binding_2d_multisample_array = proxy for glBindTexture...
  texture_binding_3d = proxy for glBindTexture(GL_TEXTURE_3D)
  texture_binding_buffer = proxy for glBindTexture(GL_TEXTURE_BU...
  texture_binding_cube_map = proxy for glBindTexture(GL_TEXTURE_...
  texture_binding_rectangle = proxy for glBindTexture(GL_TEXTURE...
  sampler_binding = proxy for glBindSampler(_unit)
Instance Variables [hide private]

Inherited from utils.objects.BindableObject (private): _stack

Inherited from utils.objects.GLObject (private): _context

Properties [hide private]

Inherited from utils.objects.GLObject: context

Inherited from object: __class__

Method Details [hide private]

__init__(self, context, _id)
(Constructor)

source code 

Create a new BindableObject.

Parameters:
  • context - The parent context.
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

texture_binding_1d_array

Value:
proxy for glBindTexture(GL_TEXTURE_1D_ARRAY)

texture_binding_2d_array

Value:
proxy for glBindTexture(GL_TEXTURE_2D_ARRAY)

texture_binding_2d_multisample

Value:
proxy for glBindTexture(GL_TEXTURE_2D_MULTISAMPLE)

texture_binding_2d_multisample_array

Value:
proxy for glBindTexture(GL_TEXTURE_2D_MULTISAMPLE_ARRAY)

texture_binding_buffer

Value:
proxy for glBindTexture(GL_TEXTURE_BUFFER)

texture_binding_cube_map

Value:
proxy for glBindTexture(GL_TEXTURE_CUBE_MAP)

texture_binding_rectangle

Value:
proxy for glBindTexture(GL_TEXTURE_RECTANGLE)