ID3DXPRTBuffer::ExtractTexture method

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

Syntax

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

Parameters

Channel [in]

Type: UINT

Buffer color channel from which to extract texture data.

StartCoefficient [in]

Type: UINT

Starting value of the buffer coefficient from which to extract texture data.

NumCoefficients [in]

Type: UINT

Number of scalars, beginning at StartCoefficient, from which to extract texture data.

pTexture [in]

Type: LPDIRECT3DTEXTURE9

Pointer to a IDirect3DTexture9 texture object that will store coefficients.

Return value

Type: HRESULT

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

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

ID3DXPRTBuffer