ID3DXPRTBuffer::ExtractTexture

Extracts coefficient data from a color channel of the buffer for a specified range of coefficients, and adds the data to an IDirect3DTexture9 object.

HRESULT ExtractTexture(
  UINT Channel,
  UINT StartCoefficient,
  UINT NumCoefficients,
  LPDIRECT3DTEXTURE9 pTexture
);

Parameters

Channel
[in] Buffer color channel from which to extract texture data.
StartCoefficient
[in] Starting value of the buffer coefficient from which to extract texture data.
NumCoefficients
[in] Number of scalars, beginning at StartCoefficient, from which to extract texture data.
pTexture
[in] Pointer to a IDirect3DTexture9 texture object that will store coefficients.

Return Values

If the method succeeds, the return value is S_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

Requirements

Header: Declared in D3dx9mesh.h.