Description
Defines a collection of colors.
Syntax
[Visual Basic .NET] |
---|
Public Sub SetPerVertexColors( _
ByVal Colors As System.Array _
)
|
[C#] |
---|
public void SetPerVertexColors(
System.Array Colors
);
|
[Managed C++] |
---|
public: void SetPerVertexColors(
System::Array ^ Colors
);
|
[Unmanaged C++] |
---|
public: HRESULT SetPerVertexColors(
SAFEARRAY * * Colors
);
|
[Java] |
---|
public void setPerVertexColors(
AgSafeArray Colors
);
|
[Python - STK API ] |
---|
def SetPerVertexColors(self, Colors:list) -> None:
|
Parameters
See Also
Example
Shows the format of the Colors parameter when setting per vertex colors.
[C#] |
---|
Array colors = new object[]
{
Color.Red.ToArgb(),
Color.Green.ToArgb(),
Color.Blue.ToArgb(),
Color.White.ToArgb()
};
IAgStkGraphicsTriangleMeshPrimitiveOptionalParameters parameters = sceneManager.Initializers.TriangleMeshPrimitiveOptionalParameters.Initialize();
parameters.SetPerVertexColors(ref colors);
|
|
Shows the format of the Colors parameter when setting per vertex colors.
[Visual Basic .NET] |
---|
Dim colors As Array = New Object() {Color.Red.ToArgb(), Color.Green.ToArgb(), Color.Blue.ToArgb(), Color.White.ToArgb()}
Dim parameters As IAgStkGraphicsTriangleMeshPrimitiveOptionalParameters = sceneManager.Initializers.TriangleMeshPrimitiveOptionalParameters.Initialize()
parameters.SetPerVertexColors(colors)
|
|