Click to Rate and Give Feedback
MSDN
MSDN Library
DirectX
SDK Documentation
DirectX Graphics
Direct3D 9
Reference
D3DX Reference
Structures
 D3DXMATERIAL

  Switch on low bandwidth view
D3DXMATERIAL
Bb172911.XDK_CHM_BANNER_left(en-us,VS.85).jpgBb172911.XDK_CHM_BANNER_right(en-us,VS.85).jpg

D3DXMATERIAL

Returns material information saved in Direct3D (.x) files.

typedef struct D3DXMATERIAL {
    D3DMATERIAL9 MatD3D;
    LPSTR pTextureFilename;
} D3DXMATERIAL, *LPD3DXMATERIAL;

Members

MatD3D
D3DMATERIAL9 structure that describes the material properties.
pTextureFilename
Pointer to a string that specifies the file name of the texture.

Remarks

The D3DXLoadMeshFromX and D3DXLoadMeshFromXof functions return an array of D3DXMATERIAL structures that specify the material color and name of the texture for each material in the mesh. The application is then required to load the texture.

The LPD3DXMATERIAL type is defined as a pointer to the D3DXMATERIAL structure.

typedef struct D3DXMATERIAL* LPD3DXMATERIAL;

Requirements

Header: Declared in D3dx9mesh.h.

See Also

D3DXLoadMeshFromX, D3DXLoadMeshFromXof

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker