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);

	node->setTravFuncs(PFTRAV_DRAW,draw_callback,NULL);
	node->setTravData(PFTRAV_DRAW,node_data);
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.


Previous page    Next page

Last modified 21 July 1997.

Dave Pape, pape@evl.uic.edu