13 View Objects Routines

13 Pushing and Popping the Graphics State

QuickDraw3D maintains a graphics state during rendering that contains camera and lighting information, a transformation matrix stack, an attributes stack, and a style stack. When it is traversing a hierarchical scene database, QuickDraw3D automatically pushes and pops graphics states onto and off the graphics state stack.

QuickDraw3D provides routines that you can use to push and pop a graphics state during the rendering of an image or other view operation. You can push a graphics state by calling Q3Push_Submit. Subsequent rendering may alter the graphics state by drawing materials, styles, and transforms. You can restore a saved graphics state by calling Q3Pop_Submit. You're likely to use these functions only if you want to simulate the traversal of a hierarchical structure when operating in immediate mode.

13 - Q3Push_Submit
13 - Q3Pop_Submit

3D Graphics Programming with QuickDraw 3D - 17 OCT 1995

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker