Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 13 - View Objects / View Objects Reference
View Objects Routines / Managing a View's Attribute Set


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. 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

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help