13 Managing a View's Attribute Set

13 Q3View_GetDefaultAttributeSet

You can use the 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.

DESCRIPTION


The 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
DESCRIPTION

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

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker