6 Managing Subdivision Styles
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.
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 kQ3SubdivisionMethodScreenSpaceThe 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.
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker