6 Managing Subdivision Styles

6 Q3SubdivisionStyle_New

You can use the Q3SubdivisionStyle_New function to create a new subdivision style object.

TQ3StyleObject Q3SubdivisionStyle_New (
const TQ3SubdivisionStyleData *data);
data A pointer to a subdivision style data structure.

DESCRIPTION


The Q3SubdivisionStyle_New function returns, as its function result, a new style object having the subdivision style specified by the data parameter. The method field of the subdivision style data structure pointed to by the data parameter should be one of these values:

kQ3SubdivisionMethodConstant
kQ3SubdivisionMethodWorldSpace
kQ3SubdivisionMethodScreenSpace
The meaning of the c1 and c2 fields depends on the value of the method field. See "Subdivision Style Data Structure" on page 6-11 for details.

If a new style object could not be created, Q3SubdivisionStyle_New returns the value NULL.

To change the current subdivision style, you must actually draw the style object. You can call Q3Style_Submit to draw the style in retained mode or Q3SubdivisionStyle_Submit to draw the style in immediate mode.

SEE ALSO


See "Subdivision Styles" on page 6-7 for a description of subdivision styles.

DESCRIPTION
SEE ALSO

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

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker