public Graphics2D NewGraphics2D() { // this is for testing the openGL implementation var graphics2D = new Graphics2DOpenGL((int)this.aggSystemWindow.Width, (int)this.aggSystemWindow.Height, GuiWidget.DeviceScale); graphics2D.PushTransform(); return(graphics2D); }
public override Graphics2D NewGraphics2D() { if (!viewPortHasBeenSet) { SetAndClearViewPort(); } Graphics2D graphics2D = new Graphics2DOpenGL(this.ClientSize.Width, this.ClientSize.Height); graphics2D.PushTransform(); return(graphics2D); }
public Graphics2D NewGraphics2D() { Graphics2D graphics2D = new Graphics2DVeldrid(this.Width, this.Height) { WindowProvider = windowProvider }; // this is for testing the open gl implementation graphics2D = new Graphics2DOpenGL(this.Width, this.Height); graphics2D.PushTransform(); return(graphics2D); }