PFND3DDDI_SETPALETTE callback function

The SetPalette function associates a palette with a texture.

Syntax


PFND3DDDI_SETPALETTE SetPalette;

__checkReturn HRESULT APIENTRY SetPalette(
  _In_       HANDLE               hDevice,
  _In_ const D3DDDIARG_SETPALETTE *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

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

Target platform

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_SETPALETTE
D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Show: