Next: Suggestions for future changes/additions
Up: Scene
Previous: Virtual member functions
A Scene is created at the start of the program, and all Displayable
objects should be added to that scene (or to another Displayable as a
child). It is used in the primary event loop to prepare and draw all the
Displayable's. It is also used to pick items with a pointer. The global
routine VMDupdate contains an example of using a Scene object.
There are two derived classes from Scene:
- NormalScene - this is the basic version, which is used for every
case except when the CAVE display device is being used. It uses standard
memory allocation routines to create storage for display lists, and to store
the lists of Displayables and display lists.
- CaveScene - this uses shared memory to store the display lists,
so that the CAVE processes can all see the same data for rendering the scene.
Justin Gullingsrud
Tue Apr 6 09:26:48 CDT 1999