?/TD>
Microsoft DirectX 9.0

D3DXRectPatchSize Function


Gets the size of the rectangle patch.

Syntax

HRESULT D3DXRectPatchSize(      

    CONST float* pNumSegs,     DWORD* pdwTriangles,     DWORD* pwdVertices );

Parameters

pNumSegs
[in] Number of segments per edge to tessellate.
pdwTriangles
[out] Pointer to a DWORD that contains the number of triangles in the patch.
pwdVertices
[out] Pointer to a DWORD that contains the number of vertices in the patch.

Return Value

If the function succeeds, the return value is D3D_OK.

If the function fails, the return value can be one of the following values.

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
E_OUTOFMEMORYMicrosoft?Direct3D?could not allocate sufficient memory to complete the call.


Function Information

Headerd3dx9mesh.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98

See Also

D3DXTessellateRectPatch


© 2002 Microsoft Corporation. All rights reserved.