예제 #1
0
 protected override void OnReadyForInitGLShaderProgram()
 {
     frameBufferNeedUpdate = true;
     polygon1 = painter.CreatePolygonRenderVx(new float[]
     {
         50, 200,
         250, 200,
         125, 350
     });
     polygon2 = painter.CreatePolygonRenderVx(new float[]
     {
         200, 50,
         250, 50,
         210, 100
     });
     polygon3 = painter.CreatePolygonRenderVx(new float[]
     {
         400, 50,
         450, 50,
         410, 100,
         350, 100,
         200, 50,
         100, 20
     });
 }
예제 #2
0
 protected override void OnReadyForInitGLShaderProgram()
 {
     _stencilPolygon = _painter.CreatePolygonRenderVx(new float[]
     {
         20, 20,
         100, 20,
         60, 80
     });
     _rectPolygon = _painter.CreatePolygonRenderVx(new float[]
     {
         5, 5,
         100, 5,
         100, 100,
         5, 100
     });
 }
예제 #3
0
        protected override void OnReadyForInitGLShaderProgram()
        {
            int max = Math.Max(this.Width, this.Height);

            _polygon1 = _painter.CreatePolygonRenderVx(new float[]
            {
                50, 200,
                250, 200,
                125, 350
            });
            _polygon2 = _painter.CreatePolygonRenderVx(new float[]
            {
                250, 400,
                450, 400,
                325, 550
            });
        }
예제 #4
0
        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[]
            {
                50, 200,
                250, 200,
                125, 350
            });
            polygon2 = painter.CreatePolygonRenderVx(new float[]
            {
                250, 400,
                450, 400,
                325, 550
            });
        }
예제 #5
0
        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
            });
        }
예제 #6
0
 protected override void OnReadyForInitGLShaderProgram()
 {
     _polygon1 = _painter.CreatePolygonRenderVx(new float[]
     {
         50, 200,
         250, 200,
         125, 350
     });
     _polygon2 = _painter.CreatePolygonRenderVx(new float[]
     {
         200, 50,
         250, 50,
         210, 100
     });
     _polygon3 = _painter.CreatePolygonRenderVx(new float[]
     {
         400, 50,
         450, 50,
         410, 100,
         350, 100,
         200, 50,
         100, 20
     });
 }