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

Type OrthoCam

object --+
         |
        OrthoCam

Known Subclasses:
BasicCameraOrtho, FrustumCam, MobileCameraOrtho, PrecessingCameraOrtho, RovingCameraOrtho, RovingCameraOrthoY, SubordinateEyeCamOrtho, SubordinateEyeCamOrthoRB

An OrthoCam is a mixin that provides for ortho mode in descendant cameras.

Each camera installed in an engine must inherit from either FrustumCam or OrthoCam.
Method Summary
  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
  viewProj(self)
Pushes ortho params/settings through to 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

ortho(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.

shape(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.

viewMV(self)

Sets eye and center position in OpenGL

viewProj(self)

Pushes ortho params/settings through to OpenGL

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