IDirect3DTexture2::PaletteChanged

The IDirect3DTexture2::PaletteChanged method informs the driver that the palette has changed on a texture surface.

HRESULT PaletteChanged(
  DWORD dwStart, 
  DWORD dwCount  
);
 

Parameters

dwStart
Index of first palette entry that has changed.
dwCount
Total number of palette entries that have changed.

Return Values

This method returns D3D_OK.

If the method fails, the return value is an error. For a list of possible return values, see Direct3D Immediate Mode Return Values.

Remarks

This method is particularly useful for applications that play video clips and therefore require palette-changing capabilities.

This method only affects the legacy ramp device. For all other devices, this method takes no action and returns D3D_OK.

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in d3d.h.
  Import Library: Use ddraw.lib.