Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #3
0
 public EntityTextHelper()
 {
     _printer = new TextPrinter(TextQuality.Low);
     _printerFont = new Font(FontFamily.GenericSansSerif, 12, GraphicsUnit.Pixel);
 }
Beispiel #4
0
 public void Setup()
 {
     this._printer = new TextPrinter(this._quality);
 }
Beispiel #5
0
 public ViewportLabelListener(ViewportBase viewport)
 {
     Viewport = viewport;
     _printer = new TextPrinter(TextQuality.Low);
     Rebuild();
 }
Beispiel #6
0
 public static void Initialize()
 {
     textPrinter = new TextPrinter();
 }
Beispiel #7
0
 static Text()
 {
     instance = new TextPrinter();
 }
 public static void Initialize()
 {
     textPrinter = new OpenTK.Graphics.TextPrinter();
 }
Beispiel #9
0
 public ObjectDisplay()
 {
     this.textPrinter = new TextPrinter(TextQuality.High);
     this.Objects = new Dictionary<string, object>();
     this.text = string.Empty;
 }