Microsoft SDK for Java

setColorSource

This method of the Direct3dRMMeshBuilder Class sets the color source of a Direct3dRMMeshBuilder object.

Syntax

public void setColorSource(int val);

Parameters

val The value of color source type that specifies the new color source to use.

Remarks

This method does not exhibit expected behavior under certain circumstances. If you use this method to set colors to faces, then it works as expected. But if you try to set colors for individual vertices, it wont, because face data is still used. To set vertice's colors, call the createMesh method and set individual vertex colors with the setVertex method.

See Also

getColorSource

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