Q3View_GetDefaultAttributeSet
You can use theQ3View_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.
DESCRIPTION
TheQ3View_GetDefaultAttributeSet
function returns, in theattributeSet
parameter, the default attribute set of the view specified by theview
parameter. QuickDraw 3D 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
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help