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

Type Engine

object --+
         |
        Engine

Known Subclasses:
EngineFullScreen

The engine manages the window, handles high-level displaying and updating.
Method Summary
  __init__(self, video)
  addCamera(self, cam)
Add a camera (and viewport) to engine.
  clear(self)
Clear the display.
  commit(self)
Commit all objects, both studio and display.
  display(self)
Display.
  dumpStats(self, empty)
Dump engine statistics.
  event(self, ev)
Handles all user defined events
  getAbsPos(self, pos)
Return absolute position of relative position 'pos'.
  go(self)
Set everything up and then execute the main loop.
  idle(self)
Runs when the engine is idle.
  init(self)
Initialize video and other systems
  maintain(self)
Run update as apropos.
  quit(self, *args)
Mark the engine as shutting down.
  redisplay(self)
Register a redisplay.
  removeCamera(self, cam)
Remove a camera (and viewport) from engine.
  reshape(self, width, height)
Resize the window.
  setup(self)
Setup the camera and interface if they're unspecified.
  shutdown(self)
Handle termination chores.
  unInit(self)
After all engines are done, call this.
  update(self)
Update all objects, both studio and display.
    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
tuple defaultInterface = (<class 'spyre.spyre.PanningInterface...
tuple defaultStudio = (<class 'spyre.spyre.NullStudio'>, ())

Method Details

addCamera(self, cam)

Add a camera (and viewport) to engine.

clear(self)

Clear the display.

commit(self)

Commit all objects, both studio and display.

display(self)

Display.

dumpStats(self, empty=None)

Dump engine statistics.

event(self, ev)

Handles all user defined events

getAbsPos(self, pos)

Return absolute position of relative position 'pos'.

go(self)

Set everything up and then execute the main loop.

idle(self)

Runs when the engine is idle.

init(self)

Initialize video and other systems

maintain(self)

Run update as apropos.

quit(self, *args)

Mark the engine as shutting down.

redisplay(self)

Register a redisplay.

removeCamera(self, cam)

Remove a camera (and viewport) from engine.

reshape(self, width, height)

Resize the window.

setup(self)

Setup the camera and interface if they're unspecified.

shutdown(self)

Handle termination chores.

unInit(self)

After all engines are done, call this.

update(self)

Update all objects, both studio and display.

Class Variable Details

defaultInterface

Type:
tuple
Value:
(<class 'spyre.spyre.PanningInterface'>, ())                           

defaultStudio

Type:
tuple
Value:
(<class 'spyre.spyre.NullStudio'>, ())                                 

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