IDirect3DRM::CreateMaterial

HRESULT CreateMaterial(D3DVALUE vPower,

LPDIRECT3DRMMATERIAL * lplpD3DRMMaterial);

Creates a material with the given specular properties.

·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

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.

lplpD3DRMMaterial

Address that will be filled with a pointer to an IDirect3DRMMaterial interface if the call succeeds.