Microsoft SDK for Java

createMaterial

This method of the Direct3dRM Class creates a material with the given specular property.

Syntax

public Direct3dRMMaterial createMaterial(float d);

Return Value

Returns the Direct3dRMMaterial object if successful; otherwise, null.

Parameters

vPower Sharpness of the reflected highlights, with a value of 5 giving a metallic look and higher values giving a more "plastic" look to the rendered surface.

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