Microsoft SDK for Java

getHandle

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.

Syntax

public int getHandle(Direct3dDevice dev);

Return Value

Returns the material handle corresponding to the Direct3dMaterial object.

Parameters

dev The Direct3dDevice object in which the material is being used.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.