Microsoft DirectX 9.0 SDK Update (October 2004)

PrtEngine.ExtractPerVertexAlbedo Method

Language:

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

Copies per-vertex albedo values from a mesh.

Definition

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

Parameters

mesh Microsoft.DirectX.Direct3D.Mesh. The Mesh object used to create the PrtEngine.
usage Microsoft.DirectX.Direct3D.DeclarationUsage. Vertex DeclarationUsage descriptions to copy from the mesh.
numberChannels System.Int32. Number of color channels to copy from the mesh. Set to 1 to specify gray materials (R = G = B), or 3 to enable color bleeding effects.

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