d3d9.dllGetTexelMap
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXTextureGutterHelper::GetTexelMap Method


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

Syntax

HRESULT GetTexelMap(      

    D3DXVECTOR2 *pTexelData );

Parameters

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

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the following value will be returned.

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.


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.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.