![]() |
![]() |
![]() |
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_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. E_OUTOFMEMORY Microsoft Direct3D could not allocate sufficient memory to complete the call.
Remarks
Use D3DXConcatenateMeshes to transform a scene to new coordinates.
Function Information
Header d3dx9mesh.h Import library d3dx9.lib Minimum operating systems Windows 98