Bewerken

Delen via


PFND3DDDI_SETPALETTE callback function (d3dumddi.h)

The SetPalette function associates a palette with a texture.

Syntax

PFND3DDDI_SETPALETTE Pfnd3dddiSetpalette;

HRESULT Pfnd3dddiSetpalette(
  HANDLE hDevice,
  const D3DDDIARG_SETPALETTE *unnamedParam2
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

unnamedParam2

pData [in]

A pointer to a D3DDDIARG_SETPALETTE structure that describes the parameters for the set-palette operation.

Return value

SetPalette returns S_OK or an appropriate error result if the palette is not successfully associated with the texture.

Remarks

The user-mode display driver uses the members in the D3DDDIARG_SETPALETTE structure that is pointed to by pData to map an association between a palette handle and a surface handle and to specify the characteristics of the palette.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_SETPALETTE

D3DDDI_DEVICEFUNCS