Trees | Index | Help |
|
---|
Package spyre :: Module spyre :: Class Light |
|
object
--+
|
Light
Bulb
,
Sun
Implements each light. This class is concrete, so can be used to create light instances, but the subclasses may be more intuitive.
You can create any number of lights, but only 8 can be on at a time.Method Summary | |
---|---|
Turn light on | |
Turn light off | |
Push light params through to OpenGL | |
Change position value. | |
Initialize new instance. | |
Turn light off on destruction. | |
updates light | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
list |
available_lights : keeps track of which light ids are available for use. |
Method Details |
---|
on(self)Turn light on |
off(self)Turn light off |
display(self)Push light params through to OpenGL |
setPosition(self, position)Change position value.
|
__init__(self,
ambient=None,
diffuse=None,
specular=None,
position=None)
Initialize new instance.
|
__del__(self)
Turn light off on destruction.
|
update(self)updates light |
Class Variable Details |
---|
available_lightskeeps track of which light ids are available for use.
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Jan 07 17:58:16 2006 | http://epydoc.sf.net |