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

Type FrustumCam

object --+    
         |    
  OrthoCam --+
             |
            FrustumCam

Known Subclasses:
BasicCameraFrustum, MobileCameraFrustum, RovingCameraFrustum, RovingCameraFrustumY, SubordinateEyeCamFrustum, SubordinateEyeCamFrustumRB

A FrustumCam is a mixin that provides for frustum (perspective) mode in descendant cameras.

Each camera installed in an engine must inherit from either FrustumCam or OrthoCam.
Method Summary
  frustum(self, left, right, bottom, top, near, far)
Sets frustum shape members.
  perspective(self, fovy, aspect, near, far)
Alternate way to specify frustum.
  viewProj(self)
Pushes frustum params/settings through to OpenGL
    Inherited from OrthoCam
  ortho(self, left, right, bottom, top, near, far)
Sets frustum shape members.
  shape(self, left, right, bottom, top, near, far)
Sets frustum shape members.
  viewMV(self)
Sets eye and center position in OpenGL
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __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)

Method Details

frustum(self, left, right, bottom, top, near=None, far=None)

Sets frustum shape members. (left, top, near) and (right, bottom, near) map to the diametrical opposite corners of the viewport, in x,y,z coords, modelview space.

near and far params are optional, and if ommitted, prior attribute values remain. all params are floats.

perspective(self, fovy, aspect, near, far)

Alternate way to specify frustum.
Parameters:
fovy - field of view angle, degrees
aspect - height/width (float)
near - near side of viewing box (float)
far - far side of viewing box (float)

viewProj(self)

Pushes frustum params/settings through to OpenGL
Overrides:
spyre.spyre.OrthoCam.viewProj

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