D3DXCreatePRTEngine
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXCreatePRTEngine Function


Creates an ID3DXPRTEngine object that can efficiently generate precomputed radiance transfer (PRT) simulations of a 3-D scene.

Syntax

HRESULT WINAPI D3DXCreatePRTEngine(      

    LPD3DXMESH pMesh,     BOOL ExtractUVs,     LPD3DXMESH pBlockerMesh,     LPD3DXPRTENGINE ppEngine );

Parameters

pMesh
[in] Pointer to an input ID3DXMesh mesh object that models the 3-D scene. This mesh must have an attribute table in which vertices are in a unique attribute.
ExtractUVs
[in] If TRUE, textures will be used to store albedos or PRT vectors.
pBlockerMesh
[in] Pointer to an optional ID3DXMesh mesh object that blocks the 3-D scene. May be NULL.
ppEngine
[in, out] Pointer to an output ID3DXPRTEngine object.

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:

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.


Remarks

Use D3DXConcatenateMeshes to transform a scene to new coordinates.

Function Information

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


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