Microsoft DirectX 9.0 SDK Update (October 2004)

PrtEngine.PrtEngine Constructor

Language:

Note: This documentation is preliminary and is subject to change.

Initializes a new instance of the PrtEngine class.

Definition

Visual Basic .NET Public Sub New( _
    ByVal mesh As Mesh, _
    ByVal extractUvs As Boolean, _
    ByVal blockerMesh As Mesh _
)
C# public PrtEngine(
    Mesh mesh,
    bool extractUvs,
    Mesh blockerMesh
);
Managed C++ public: PrtEngine(
    Mesh *mesh,
    bool extractUvs,
    Mesh *blockerMesh
);
JScript .NET public function PrtEngine(
    mesh : Mesh,
    extractUvs : boolean,
    blockerMesh : Mesh
);

Parameters

mesh Microsoft.DirectX.Direct3D.Mesh. An input Mesh object that models the 3-D scene. This mesh must have an attribute table in which vertices are in a unique attribute.
extractUvs System.Boolean. Set to true if textures will be used to store albedos or precomputed radiance transfer (PRT) vectors; otherwise, false.
blockerMesh Microsoft.DirectX.Direct3D.Mesh. A Mesh object that blocks the 3-D scene.

Remarks

The PrtEngine class efficiently generates precomputed radiance transfer (PRT) simulations of a 3-D scene.

Use PrtEngine.ConcatenateMeshes to transform a scene to new coordinates.

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
OutOfMemoryException Leave Site Microsoft® Direct3D® could not allocate sufficient memory to complete the call.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center