// d3dumddi.h
PFND3DDDI_SETPALETTE Pfnd3dddiSetpalette;
HRESULT Pfnd3dddiSetpalette(
HANDLE hDevice,
const D3DDDIARG_SETPALETTE *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The SetPalette function associates a palette with a texture.
hDeviceA handle to the display device (graphics context).
unnamedParam2pData [in]
A pointer to a D3DDDIARG_SETPALETTE structure that describes the parameters for the set-palette operation.
SetPalette returns S_OK or an appropriate error result if the palette is not successfully associated with the texture.
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.