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

Type Sun

object --+    
         |    
     Light --+
             |
            Sun


Implements light that stays at infinite distance
Method Summary
  __init__(self, ambient, diffuse, specular, direction)
Initialize new instance.
  setDirection(self, direction)
Sets direction light shines.
  setPosition(self, position)
Disable setPosition.
    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, direction=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
direction - 3 tuple, x,y,z direction light points
Overrides:
spyre.spyre.Light.__init__

setDirection(self, direction)

Sets direction light shines.

setPosition(self, position)

Disable setPosition.
Overrides:
spyre.spyre.Light.setPosition

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