13 Managing a View's Attribute Set
Q3View_GetDefaultAttributeSet
function to get the default attribute set associated with a view.
TQ3Status Q3View_GetDefaultAttributeSet ( TQ3ViewObject view, TQ3AttributeSet *attributeSet);view
A view.attributeSet
On exit, the default attribute set associated with the specified view.
Q3View_GetDefaultAttributeSet
function returns, in the attributeSet
parameter, the default attribute set of the view specified by the view
parameter. QuickDraw3D supplies a default set of attributes for every view so that you can safely render a view without having to set a value for each attribute. The default attribute values are defined by constants:
#define kQ3ViewDefaultAmbientCoefficient 1.0 #define kQ3ViewDefaultDiffuseColor 0.5, 0.5, 0.5 #define kQ3ViewDefaultSpecularColor 0.5, 0.5, 0.5 #define kQ3ViewDefaultSpecularControl 4.0 #define kQ3ViewDefaultTransparency 1.0, 1.0, 1.0 #define kQ3ViewDefaultSubdivisionMethod \ kQ3SubdivisionMethodConstant #define kQ3ViewDefaultSubdivisionC1 10.0 #define kQ3ViewDefaultSubdivisionC2 10.0
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker