Using attribute bundles
The properties that determine how a 3D graphic is drawn (such as color, frame pen, and shading resolution) are called attributes. Attributes are defined by a TGrafBundle3D and often referred to as attribute bundles or bundles. Bundles are created and passed to a graphic to define the attributes for that graphic. If a graphic does not have a bundle, the default graphic state of the drawing port defines the graphic's attributes. The graphic state is described in Chapter 19.
MGraphic3D has functions to adopt, get, and orphan bundles, which are shown in Figure 144 and described in Chapter 3. These functions control bundle ownership and determine which instance is responsible for deleting a bundle. Chapter 16 describes how to define 3D attributes using the TGrafBundle3D class.
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker