Returns the current value of the SFColor event-out slot.
C# |
---|
public abstract void GetValue (
float[] value
) |
The following example demonstrates how to get the color of
an object:
C# |
---|
Vrml.EAI.Node material = ...;
Vrml.EAI.Field.EventOutSFColor diffuseColor_changed = (Vrml.EAI.Field.EventOutSFColor)material.GetEventOut("diffuseColor_changed");
float[] color = new float[3];
diffuseColor_changed.GetValue(color);
System.Console.WriteLine("red = " + color[0] + ", green = " + color[1] + ", blue = " + color[2]);
|