6 Managing Shadow-Receiving Styles
Q3ReceiveShadowsStyle_New
function to create a new shadow-receiving style object.
TQ3StyleObject Q3ReceiveShadowsStyle_New (TQ3Boolean receives);receives
A Boolean value that determines whether the new style object specifies that objects in the scene receive shadows (kQ3True
) or do not receive shadows (kQ3False
).
Q3ReceiveShadowsStyle_New
function returns, as its function result, a new style object having the shadow-receiving style specified by the receives
parameter.
If a new style object could not be created, Q3ReceiveShadowsStyle_New
returns the value NULL
.
To change the current shadow-receiving style, you must actually draw the style object. You can call Q3Style_Submit
to draw the style in retained mode or Q3ReceiveShadowsStyle_Submit
(described next) to draw the style in immediate mode.
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker