Data Fields
A3DGraphicsData Struct Reference

Graphics data. More...

Data Fields

A3DUns16 m_usStructSize
 
A3DUns32 m_uiLayerIndex
 
A3DUns32 m_uiStyleIndex
 
A3DUns16 m_usBehaviour
 

Detailed Description

Graphics data.

Version
2.0

To get the graphical attributes of an entity that has the A3DRootBaseWithGraphics entity as its base, do these tasks:

  1. Use the m_uiStyleIndex member to retrieve the index of style in the global style array.
  2. If the index matches the default value, no particular graphical style is applied on entity.
  3. Otherwise, use the index on A3DGlobalGetGraphStyleData to get the A3DGraphStyleData from the global object.
    • Width and transparency are directly on the A3DGraphStyleData object.
    • Use the indexes for colors, materials, textures, or patterns and dedicated functions to get these graphics objects from global arrays.
Warning
When initializing the A3DGraphicsData structure with the A3D_INITIALIZE_DATA macro, every field is set to NULL; thus, to create a graphic attribute, and if you do not change the behavior, the object will be hidden. Please refer to Bit Field for Behavior on Graphics for more information on possible values.

Field Documentation

A3DUns16 A3DGraphicsData::m_usStructSize

Reserved; must be initialized with A3D_INITIALIZE_DATA.

A3DUns32 A3DGraphicsData::m_uiLayerIndex

Layer index.

A3DUns32 A3DGraphicsData::m_uiStyleIndex

Index of the display style in the global style array.

See also
A3DGraphStyleData
A3DUns16 A3DGraphicsData::m_usBehaviour