Microsoft DirectX 8.1 (Visual Basic)

D3DXMATERIAL

Returns material information saved in Microsoft® DirectX® X files.

Type D3DXMATERIAL
    Material As D3DMATERIAL8
    TextureFilename As String
End Type

Members

Material
D3DMATERIAL8 type that describes the material properties.
TextureFilename
String that specifies the file name of the texture.

Remarks

The D3DX8.LoadMeshFromX and D3DX8.LoadMeshFromXof methods return an array of D3DXMATERIAL types 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.

See Also

D3DX8.LoadMeshFromX, D3DX8.LoadMeshFromXof