Reference to a SFColor event-out slot.
C# |
---|
public abstract class EventOutSFColor : |
EventOut
|
|
Click here to see the list of members.
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 = diffuseColor_changed.GetValue();
System.Console.WriteLine("red = " + color[0] + ", green = " + color[1] + ", blue = " + color[2]);
|