ID3DXTextureGutterHelper::GetTexelMap

Retrieves the (u, v) texture coordinates of each texel.

HRESULT GetTexelMap(
  D3DXVECTOR2 * pTexelData
);

Parameters

pTexelData
[out] Pointer to the location in pixel (u, v) texture coordinates where each texel is located.

Return Values

If the method succeeds, the return value is S_OK. If the method fails, the following value will be returned.

D3DERR_INVALIDCALL

Remarks

For class 2 and 4 texels, the returned (u, v) texture coordinates correspond to the closest point on the closest triangle.

The application must allocate and manage pTexelData.

Requirements

Header: Declared in D3dx9mesh.h.