This method of the Direct3dMaterial Class obtains the material handle for the Direct3dMaterial object. This handle is used in all Direct3D API calls where a material is to be referenced. A material can be used by only one device at a time.
If the device is destroyed, the material is disassociated from the device.
public int getHandle(Direct3dDevice dev);
Returns the material handle corresponding to the Direct3dMaterial object.
dev | The Direct3dDevice object in which the material is being used. |