Microsoft DirectX 9.0 SDK Update (October 2004)

PrtBuffer.ExtractToMesh Method

Language:

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

Extracts coefficient data from a single-channel buffer and adds the data to a Mesh object.

Definition

Visual Basic .NET Public Sub ExtractToMesh( _
    ByVal numberCoefficients As Integer, _
    ByVal usage As DeclarationUsage, _
    ByVal usageIndexStart As Integer, _
    ByVal scene As Mesh _
)
C# public void ExtractToMesh(
    int numberCoefficients,
    DeclarationUsage usage,
    int usageIndexStart,
    Mesh scene
);
Managed C++ public: void ExtractToMesh(
    int numberCoefficients,
    DeclarationUsage usage,
    int usageIndexStart,
    Mesh *scene
);
JScript .NET public function ExtractToMesh(
    numberCoefficients : int,
    usage : DeclarationUsage,
    usageIndexStart : int,
    scene : Mesh
);

Parameters

numberCoefficients System.Int32. Number of coefficients per sample location. When using spherical harmonic (SH) precomputed radiance transfer (PRT), the number of coefficients should be Order2, where Order is the order of the spherical harmonic (SH) evaluation. Order must be in the range of SphericalHarmonics.MinimumOrder to SphericalHarmonics.MaximumOrder, inclusive.
usage Microsoft.DirectX.Direct3D.DeclarationUsage. A DeclarationUsage object that describes vertex usage of the mesh.
usageIndexStart System.Int32. Starting index for coefficients to be stored in the mesh.
scene Microsoft.DirectX.Direct3D.Mesh. A Mesh object that will store coefficients.

Remarks

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