Ejemplo n.º 1
0
 public static void Camera(string name, ParameterSet parameterSet)
 {
     Api.RenderOptions.CameraName = name;
     Api.RenderOptions.CameraParameters = parameterSet;
     Api.RenderOptions.CameraToWorld = CurrentTransform.Inverse;
     NamedCoordinateSystems["camera"] = new TransformSet (Api.RenderOptions.CameraToWorld);
 }
Ejemplo n.º 2
0
 public TransformSet(TransformSet tset)
 {
     t[0] = new Transform (tset[0]);
     t[1] = new Transform (tset[1]);
 }
Ejemplo n.º 3
0
 public static void CoordSysTransform(string name)
 {
     if (Api.NamedCoordinateSystems.ContainsKey (name))
         Api.CurrentTransform = new TransformSet (Api.NamedCoordinateSystems[name]);
 }
Ejemplo n.º 4
0
 public static void AttributeEnd()
 {
     Api.GraphicsState = new GraphicsState (Api.PushedGraphicsStates.Pop ());
     Api.CurrentTransform = new TransformSet (Api.PushedTransforms.Pop ());
     Api.ActiveTransformBits = Api.PushedActiveTransformBits.Pop ();
 }
Ejemplo n.º 5
0
 public static void WorldBegin()
 {
     CurrentTransform[0] = new Transform ();
     CurrentTransform[1] = new Transform ();
     ActiveTransformBits = 3;
     NamedCoordinateSystems["world"] = new TransformSet (CurrentTransform);
 }
Ejemplo n.º 6
0
 public static void TransformEnd()
 {
     Api.CurrentTransform = new TransformSet (Api.PushedTransforms.Pop ());
     Api.ActiveTransformBits = Api.PushedActiveTransformBits.Pop ();
 }