DX9ToolsR4 - Created by: X

MeshEx.SetMaterial Method (Int32, Material, TextureStage, Int32)

Sets a stored material in a specified index.

[Visual Basic]
Overloads Public Sub SetMaterial( _
   ByVal Index As Integer, _
   ByVal Mat As Material, _
   ByVal Texture As TextureStage, _
   ByVal TextureIndex As Integer _
)
[C#]
public void SetMaterial(
   int Index,
   Material Mat,
   TextureStage Texture,
   int TextureIndex
);

Parameters

Index
The index of the material to retrieve.
Mat
The material to be stored.
Texture
The texture index to be stored.
TextureIndex
The stage where the texture index will be stored.

See Also

MeshEx Class | CBX.Libs.DX9ToolsR4 Namespace | MeshEx.SetMaterial Overload List