d3d9.dllGetOptions
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXPMesh::GetOptions Method


Retrieves the mesh options enabled for this mesh at creation time.

Syntax

DWORD GetOptions(VOID);

Return Value

Returns a combination of one or more of the following flags, indicating the options enabled for this mesh at creation time.

D3DXMESH_32BITUse 32-bit indices.
D3DXMESH_DONOTCLIPUse the D3DUSAGE_DONOTCLIP usage flag for vertex and index buffers.
D3DXMESH_DYNAMICEquivalent to specifying both D3DXMESH_VB_DYNAMIC and D3DXMESH_IB_DYNAMIC.
D3DXMESH_RTPATCHESUse the D3DUSAGE_RTPATCHES usage flag for vertex and index buffers.
D3DXMESH_NPATCHESSpecifying this flag causes the vertex and index buffer of the mesh to be created with D3DUSAGE_NPATCHES flag. This is required if the mesh object is to be rendered using N-Patch enhancement using Microsoft Direct3D.
D3DXMESH_MANAGEDEquivalent to specifying both D3DXMESH_VB_MANAGED and D3DXMESH_IB_MANAGED.
D3DXMESH_POINTSUse the D3DUSAGE_POINTS usage flag for vertex and index buffers.
D3DXMESH_IB_DYNAMICUse the D3DUSAGE_DYNAMIC usage flag for index buffers.
D3DXMESH_IB_MANAGEDUse the D3DPOOL_MANAGED memory class for index buffers.
D3DXMESH_IB_SYSTEMMEMUse the D3DPOOL_SYSTEMMEM memory class for index buffers.
D3DXMESH_IB_WRITEONLYUse the D3DUSAGE_WRITEONLY usage flag for index buffers.
D3DXMESH_SYSTEMMEMEquivalent to specifying both D3DXMESH_VB_SYSTEMMEM and D3DXMESH_IB_SYSTEMMEM.
D3DXMESH_VB_DYNAMICUse the D3DUSAGE_DYNAMIC usage flag for vertex buffers.
D3DXMESH_VB_MANAGEDUse the D3DPOOL_MANAGED memory class for vertex buffers.
D3DXMESH_VB_SYSTEMMEMUse the D3DPOOL_SYSTEMMEM memory class for vertex buffers.
D3DXMESH_VB_WRITEONLYUse the D3DUSAGE_WRITEONLY usage flag for vertex buffers.
D3DXMESH_WRITEONLYEquivalent to specifying both D3DXMESH_VB_WRITEONLY and D3DXMESH_IB_WRITEONLY.




© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.