Pushing and Popping the Graphics State
QuickDraw 3D 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, QuickDraw 3D automatically pushes and pops graphics states onto and off the graphics state stack.QuickDraw 3D 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 callingQ3Pop_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.
Subtopics
- Q3Push_Submit
- Q3Pop_Submit
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help