A3DGraphStyleData
Fields
Detailed Description
-
struct A3DGraphStyleData
General style information.
The
A3DGraphStyleData
is a globally indexed entity describing all the graphics properties a renderable object can be assigned to, such as drawing patterns, materials or textures.- Version
2.0
Any
A3DRootBaseWithGraphics
entity holds an instance ofA3DGraphStyle
through itsA3DGraphics
entity. The following example function fills in anA3DGraphStyleData
given anA3DRootBaseWithGraphics
instance:void GetGraphStyleData(const A3DRootBaseWithGraphics* base, A3DGraphStyleData* style_data) { assert(style_data != 0); A3DRootBaseWithGraphicsData base_data; A3D_INITIALIZE_DATA(A3DRootBaseWithGraphicsData, base_data); A3DStatus result = A3DRootBaseWithGraphicsGet(base, &base_data); assert(result == A3D_SUCCESS); A3DGraphicsData graphics_data; A3D_INITIALIZE_DATA(A3DGraphicsData, graphics_data); result = A3DGraphicsGet(base_data.m_pGraphics, &graphics_data); assert(result == A3D_SUCCESS); result = A3DGlobalGetGraphStyleData(graphics_data.m_uiStyleIndex, style_data); assert(result == A3D_SUCCESS); A3DGraphicsGet(0, &graphics_data); A3DRootBaseWithGraphicsGet(0, &base_data); }
See also
See also
See also
See also
See also
See also
See also
Public Members
-
A3DBool m_bVPicture
Indicates whether
m_uiLinePatternIndex
indexes anA3DGraphVPicturePattern
(A3D_TRUE
) or anA3DGraphLinePattern
(A3D_FALSE
).
-
A3DUns32 m_uiLinePatternIndex
A global index to either an
A3DGraphVPicturePattern
or anA3DGraphLinePattern
according to the value ofm_bVPicture
.
-
A3DBool m_bMaterial
Indicates whether
m_uiRgbColorIndex
indexes anA3DGraphMaterialData
(A3D_TRUE
) or anA3DGraphRgbColorData
(A3D_FALSE
).
-
A3DUns32 m_uiRgbColorIndex
A global index to either an
A3DGraphMaterialData
or anA3DGraphRgbColorData
according to the value ofm_bMaterial
.
-
A3DUns8 m_ucTransparency
The transparency value from 0 (invisible) to 255 (fully visible) when
m_bIsTransparencyDefined
is set.
-
A3DBool m_bSpecialCulling
If true, front and back face culling can be enabled separately using
m_bFrontCulling
andm_bBackCulling
respectively.
-
A3DBool m_bFrontCulling
Enables front face culling. Active only when
m_bSpecialCulling
is set toA3D_TRUE
.
-
A3DBool m_bBackCulling
Enables back face culling. Active only when
m_bSpecialCulling
is set toA3D_TRUE
.
-
A3DERenderingMode m_eRenderingMode
Surface rendering mode: solid, outline, wireframe or hidden line removal.