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

Type Bulb

object --+    
         |    
     Light --+
             |
            Bulb

Known Subclasses:
Spot

Implements point light
Method Summary
  __init__(self, ambient, diffuse, specular, position)
Initialize new instance.
  setPosition(self, position)
Set position of light.
    Inherited from Light
  __del__(self)
Turn light off on destruction.
  display(self)
Push light params through to OpenGL
  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, ambient=None, diffuse=None, specular=None, position=None)
(Constructor)

Initialize new instance.
Parameters:
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.Light.__init__

setPosition(self, position)

Set position of light.
Overrides:
spyre.spyre.Light.setPosition

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