Package spyre :: Module spyre :: Class Spot
[frames | no frames]

Type Spot

object --+        
         |        
     Light --+    
             |    
          Bulb --+
                 |
                Spot


Implements a spotlight, with beam.
Method Summary
  __init__(self, cutoff, direction, ambient, diffuse, specular, position)
Initialize new instance.
  display(self)
Pushes light params through to OpenGL
  setDirection(self, direction)
Set Direction light points
    Inherited from Bulb
  setPosition(self, position)
Set position of light.
    Inherited from Light
  __del__(self)
Turn light off on destruction.
  off(self)
Turn light off
  on(self)
Turn light on
  update(self)
updates light
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
    Inherited from Light
list available_lights: keeps track of which light ids are available for use.

Method Details

__init__(self, cutoff, direction, ambient=None, diffuse=None, specular=None, position=None)
(Constructor)

Initialize new instance.
Parameters:
cutoff - angle in degrees for 'spot'
direction - 3 tuple, x,y,z for direction light points
ambient - 4 tuple rgba for 'ambient' light
diffuse - 4 tuple rgba for 'diffuse' light
specular - 4 tuple rgba for 'specular' (imaged) light
position - 3 tuple, x,y,z for location of light
Overrides:
spyre.spyre.Bulb.__init__

display(self)

Pushes light params through to OpenGL
Overrides:
spyre.spyre.Light.display

setDirection(self, direction)

Set Direction light points

Generated by Epydoc 2.1 on Sat Jan 07 17:58:16 2006 http://epydoc.sf.net