Returns one element of a MFColor event-out slot.
C# |
---|
public abstract void Get1Value (
int index,
float[] value
) |
The following example gets the first color value from the "color"
field of a Color node and prints it to the console:
C# |
---|
Vrml.EAI.Node color = ...;
Vrml.EAI.Field.EventOutMFColor color_changed = (Vrml.EAI.Field.EventOutMFColor)color.GetEventOut("color_changed");
float[] c = new float[3];
color_changed.Get1Value(0, c);
System.Console.WriteLine("red = " + c[0] + ", green = " + c[1] + ", blue = " + c[2]);
|