Database Traversals

Performer operates on its scene graph via traversals, where nodes are recursively visited. Traversals occur in the application, cull, and draw stages, each performing different operations. Various default operations are performed on the graph automatically; application-specific operations can be performed by traversal callbacks. e.g.:
	int draw_callback(pfTraverser *trav,void *travData);

causes draw_callback() to be called in the draw stage when node is visited. Note - node will not be visited in the draw stage if it has been culled.

Navigation example using traversal callback

Previous page    Table of contents    Next page

Last modified 5 February 1996.

Dave Pape,