Package glitter :: Package textures :: Module sampler :: Class Sampler
[hide private]
[frames] | no frames]

Class Sampler

source code

              object --+        
                       |        
  utils.objects.GLObject --+    
                           |    
 utils.objects.ManagedObject --+
                               |
              object --+       |
                       |       |
  utils.objects.GLObject --+   |
                           |   |
              object --+   |   |
                       |   |   |
utils.objects.StateMixin --+   |
                           |   |
utils.objects.BindableObject --+
                               |
                              Sampler

Instance Methods [hide private]
 
__init__(self, unit, context=None)
Create a new ManagedObject using _generate_id.
source code

Inherited from utils.objects.ManagedObject: __del__

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__, __str__, __subclasshook__

Class Variables [hide private]
  _generate_id = _libraries ['libGL.so.1'].glGenSamplers
Constructor function.
  _delete_id = _libraries ['libGL.so.1'].glDeleteSamplers
Destructor function.
  _db = 'samplers'
The name of the corresponding object database in the Context.
  _binding = 'sampler_binding'
Name of the corresponding property in the Context.
  compare_funcs = Enum(NEVER, LESS, EQUAL, LEQUAL, GREATER, NOTE...
  compare_modes = Enum(NONE, COMPARE_REF_TO_TEXTURE)
  min_filters = Enum(NEAREST, LINEAR, NEAREST_MIPMAP_LINEAR, LIN...
  mag_filters = Enum(NEAREST, LINEAR)
  wrapmodes = Enum(MIRRORED_REPEAT, REPEAT, CLAMP_TO_BORDER, CLA...

Inherited from utils.objects.ManagedObject (private): _type

Instance Variables [hide private]

Inherited from utils.objects.ManagedObject (private): _id

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

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

Properties [hide private]
  compare_func
  compare_mode
  lod_bias
  min_filter
  mag_filter
  min_lod
  max_lod
  wrap_s
  wrap_t
  wrap_r

Inherited from utils.objects.GLObject: context

Inherited from object: __class__

Method Details [hide private]

__init__(self, unit, context=None)
(Constructor)

source code 

Create a new ManagedObject using _generate_id.

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

Class Variable Details [hide private]

compare_funcs

Value:
Enum(NEVER, LESS, EQUAL, LEQUAL, GREATER, NOTEQUAL, GEQUAL, ALWAYS)

min_filters

Value:
Enum(NEAREST, LINEAR, NEAREST_MIPMAP_LINEAR, LINEAR_MIPMAP_LINEAR, LIN\
EAR_MIPMAP_NEAREST, NEAREST_MIPMAP_NEAREST)

wrapmodes

Value:
Enum(MIRRORED_REPEAT, REPEAT, CLAMP_TO_BORDER, CLAMP_TO_EDGE)

Property Details [hide private]

compare_func

Get Method:
unreachable.compare_func(self)
Set Method:
unreachable.compare_func(self, compare_func)

compare_mode

Get Method:
unreachable.compare_mode(self)
Set Method:
unreachable.compare_mode(self, compare_mode)

lod_bias

Get Method:
unreachable.lod_bias(self)
Set Method:
unreachable.lod_bias(self, lod_bias)

min_filter

Get Method:
unreachable.min_filter(self)
Set Method:
unreachable.min_filter(self, min_filter)

mag_filter

Get Method:
unreachable.mag_filter(self)
Set Method:
unreachable.mag_filter(self, mag_filter)

min_lod

Get Method:
unreachable.min_lod(self)
Set Method:
unreachable.min_lod(self, min_lod)

max_lod

Get Method:
unreachable.max_lod(self)
Set Method:
unreachable.max_lod(self, max_lod)

wrap_s

Get Method:
unreachable.wrap_s(self)
Set Method:
unreachable.wrap_s(self, wrap_s)

wrap_t

Get Method:
unreachable.wrap_t(self)
Set Method:
unreachable.wrap_t(self, wrap_t)

wrap_r

Get Method:
unreachable.wrap_r(self)
Set Method:
unreachable.wrap_r(self, wrap_r)