PrtEngine.PrtEngine Constructor

Language:

Initializes a new instance of the PrtEngine class.

Definition

Visual Basic Public Sub New( _
    ByVal mesh As Mesh, _
    ByVal adjacency As GraphicsStream, _
    ByVal extractUvs As Boolean, _
    ByVal blockerMesh As Mesh _
)
C# public PrtEngine(
    Mesh mesh,
    GraphicsStream adjacency,
    bool extractUvs,
    Mesh blockerMesh
);
C++ public:
 PrtEngine(
    Meshmesh,
    GraphicsStreamadjacency,
    bool extractUvs,
    MeshblockerMesh
);
JScript public function PrtEngine(
    mesh : Mesh,
    adjacency : GraphicsStream,
    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.
adjacency Microsoft.DirectX.GraphicsStream
A GraphicsStream object containing three Int32 Leave Site values per face that specify the three neighbors for each face in the mesh.
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 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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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