Microsoft DirectX 8.1 (Visual Basic) |
Returns material information saved in Microsoft® DirectX® X files.
Type D3DXMATERIAL Material As D3DMATERIAL8 TextureFilename As String End Type
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.