Applications use the methods of the Direct3dRMMaterial Class of the com.ms.directX package to interact with material objects.
public class Direct3dRMMaterial implements IDirect3dRMMaterial { // Methods public void getEmissive(float[] r, float[] g, float[] b); public float getPower(); public void getSpecular(float[] r, float[] g, float[] b); public void setEmissive(float r, float g, float b); public void setPower(float power); public void setSpecular(float r, float g, float b); }
The Direct3dRMMaterial class inherits the following methods from the Direct3dRMObject class:
addDestroyCallback
duplicate
deleteDestroyCallback
getAppData
getClassName
getName
setAppData
setName
The Direct3dRMMaterial object is obtained by calling the createMaterial method.