Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public override Graphics2D NewGraphics2D()
        {
            if (!viewPortHasBeenSet)
            {
                SetAndClearViewPort();
            }

            Graphics2D graphics2D = new Graphics2DOpenGL(this.ClientSize.Width, this.ClientSize.Height);

            graphics2D.PushTransform();

            return(graphics2D);
        }
Ejemplo n.º 3
0
        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);
        }