A3DGraphStyleData
-
struct
A3DGraphStyleData deprecated
General style information.
2.0The
A3DGraphStyleDatais a globally indexed entity describing all the graphics properties a renderable object can be assigned to, such as drawing patterns, materials or textures.voidGetGraphStyleData(constA3DRootBaseWithGraphics*base,A3DGraphStyleData*style_data) { assert(style_data!=0); A3DRootBaseWithGraphicsDatabase_data; A3D_INITIALIZE_DATA(A3DRootBaseWithGraphicsData,base_data); A3DStatusresult=A3DRootBaseWithGraphicsGet(base,&base_data); assert(result==A3D_SUCCESS); A3DGraphicsDatagraphics_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); }
Any
A3DRootBaseWithGraphicsentity holds an instance ofA3DGraphStylethrough itsA3DGraphicsentity. The following example function fills in anA3DGraphStyleDatagiven anA3DRootBaseWithGraphicsinstance:
Variables
-
A3DDouble
A3DGraphStyleData.m_dWidth -
Drawing lines width in millimeters.
-
A3DBool
A3DGraphStyleData.m_bVPicture -
Indicates whether
m_uiLinePatternIndexindexes anA3DGraphVPicturePattern(A3D_TRUE) or anA3DGraphLinePattern(A3D_FALSE).
-
A3DUns32
A3DGraphStyleData.m_uiLinePatternIndex -
A global index to either an
A3DGraphVPicturePatternor anA3DGraphLinePatternaccording to the value ofm_bVPicture.
-
A3DBool
A3DGraphStyleData.m_bMaterial -
Indicates whether
m_uiRgbColorIndexindexes anA3DGraphMaterialData(A3D_TRUE) or anA3DGraphRgbColorData(A3D_FALSE).
-
A3DUns32
A3DGraphStyleData.m_uiRgbColorIndex -
A global index to either an
A3DGraphMaterialDataor anA3DGraphRgbColorDataaccording to the value ofm_bMaterial.
-
A3DBool
A3DGraphStyleData.m_bIsTransparencyDefined -
Indicates whether transparency is defined.
-
A3DUns8
A3DGraphStyleData.m_ucTransparency -
The transparency value from 0 (invisible) to 255 (fully visible) when
m_bIsTransparencyDefinedis set.
-
A3DBool
A3DGraphStyleData.m_bSpecialCulling -
If true, front and back face culling can be enabled separately using
m_bFrontCullingandm_bBackCullingrespectively.
-
A3DBool
A3DGraphStyleData.m_bFrontCulling -
Enables front face culling. Active only when
m_bSpecialCullingis set toA3D_TRUE.
-
A3DBool
A3DGraphStyleData.m_bBackCulling -
Enables back face culling. Active only when
m_bSpecialCullingis set toA3D_TRUE.
-
A3DBool
A3DGraphStyleData.m_bNoLight -
If true, lighting is disabled for the whole style.
-
A3DERenderingMode
A3DGraphStyleData.m_eRenderingMode -
Surface rendering mode: solid, outline, wireframe or hidden line removal.