Exemple #1
0
 /// <param name="u">A Universe to display.</param>
 public Canvas(Universe u) : base(1920, 1080, new OpenTK.Graphics.GraphicsMode(16, 16))
 {
     universe = u;
     m_camera = new rope.camera(CoordinateEngine.toVector3(universe.bro.x), new Vector3(0, 0, -1), new Vector3(0, 1, 0));
     printer  = new OpenTK.Graphics.TextPrinter();
     stats    = Stats.Instance();
     stats.AddValue(FPS_TAG, -1);
 }
Exemple #2
0
 /// <param name="u">A Universe to display.</param>
 public Canvas(Universe u)
     : base(1920, 1080, new OpenTK.Graphics.GraphicsMode(16, 16))
 {
     universe = u;
     m_camera = new rope.camera (CoordinateEngine.toVector3(universe.bro.x), new Vector3(0,0,-1), new Vector3(0,1,0));
     printer = new OpenTK.Graphics.TextPrinter();
     stats = Stats.Instance();
     stats.AddValue(FPS_TAG, -1);
 }