protected override void OnInitGLProgram(object sender, EventArgs args) { int max = Math.Max(this.Width, this.Height); canvas2d = CreateCanvasGL2d(max, max); painter = new GLCanvasPainter(canvas2d, max, max); polygon1 = painter.CreatePolygonRenderVx(new float[] { 0, 50, 50, 50, 10, 100 }); polygon2 = painter.CreatePolygonRenderVx(new float[] { 200, 50, 250, 50, 210, 100 }); polygon3 = painter.CreatePolygonRenderVx(new float[] { 400, 50, 450, 50, 410, 100 }); }
protected override void OnInitGLProgram(object sender, EventArgs args) { int max = Math.Max(this.Width, this.Height); canvas2d = PixelFarm.Drawing.GLES2.GLES2Platform.CreateCanvasGL2d(max, max); painter = new GLCanvasPainter(canvas2d, max, max); polygon1 = painter.CreatePolygonRenderVx(new float[] { 50, 200, 250, 200, 125, 350 }); polygon2 = painter.CreatePolygonRenderVx(new float[] { 250, 400, 450, 400, 325, 550 }); }
protected override void OnInitGLProgram(object sender, EventArgs args) { int max = Math.Max(this.Width, this.Height); canvas2d = CreateCanvasGL2d(max, max); painter = new GLCanvasPainter(canvas2d, max, max); stencilPolygon = painter.CreatePolygonRenderVx(new float[] { 20, 20, 100, 20, 60, 80 }); rectPolygon = painter.CreatePolygonRenderVx(new float[] { 5, 5, 100, 5, 100, 100, 5, 100 }); }