Beispiel #1
0
        protected override void OnGLRender(object sender, EventArgs args)
        {
            _glsx.SmoothMode  = SmoothMode.Smooth;
            _glsx.StrokeColor = PixelFarm.Drawing.Color.Blue;
            _glsx.ClearColorBuffer();
            //-------------------------------

            int j = lionShape.NumPaths;

            int[]       pathList = lionShape.PathIndexList;
            Color[]     colors   = lionShape.Colors;
            VertexStore myvxs    = lionVxs;

            for (int i = 0; i < j; ++i)
            {
                painter.FillColor = colors[i];
                painter.Fill(new VertexStoreSnap(myvxs, pathList[i]));
            }
            //-------------------------------
            SwapBuffers();
        }