PrtEngine.PrtEngine(Mesh,GraphicsStream,Boolean,Mesh) Constructor (Microsoft.DirectX.Direct3D)
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(
Mesh^ mesh,
GraphicsStream^ adjacency,
bool extractUvs,
Mesh^ blockerMesh
);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 Int32values 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
The method call is invalid. For example, a method's parameter might contain an invalid value.
Microsoft Direct3D could not allocate sufficient memory to complete the call.
.gif)