IDirect3DRMDevice2::SetShades

Sets the number of shades in a ramp of colors used for shading.

HRESULT SetShades(
DWORD ulShades
);

Parameters

ulShades

New number of shades. This parameter must be a power of 2. The default is 32.

Return Values

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

See Also

IDirect3DRMDevice2::GetShades