Beispiel #1
0
 public Renderer(Render.IRendererCallback callbacks)
 {
     Scenic.Render.Context render = new Scenic.Render.Context();
     render.lineRenderer   = lineRenderer;
     render.vertexRenderer = callbacks;
     contexts.Add(render);
 }
Beispiel #2
0
        public void setTransform(int contextId, System.Drawing.Drawing2D.Matrix affine)
        {
#if PENDING
            ENTER(Java_scenic_jni_Renderer_setTransform);
            Affine2 t;

            t.m00 = m00;
            t.m01 = m01;
            t.m10 = m10;
            t.m11 = m11;
            t.dx  = dx;
            t.dy  = dy;
#endif
            Scenic.Render.Context context = getContext(contextId);
            context.transform = affine;
        }
Beispiel #3
0
        public void polylineSetStyle(int contextId, float width, LineCapStyle cap, LineJoinStyle join,
                                     float miterLimit, float[] lineDashLengths, float lineDashPhase)
        {
            Scenic.Render.Context context = getContext(contextId);

            context.lineWidth       = width;
            context.lineCap         = cap;
            context.lineJoin        = join;
            context.miterLimit      = miterLimit;
            context.lineDashLengths = new List <float>();
            if (lineDashLengths != null)
            {
                for (int i = 0; i < lineDashLengths.GetLongLength(0); i++)
                {
                    context.lineDashLengths.Add(lineDashLengths[i]);
                }
            }
            context.lineDashPhase = lineDashPhase;
        }
 public Renderer(Render.IRendererCallback callbacks)
 {
     Scenic.Render.Context render = new Scenic.Render.Context();
     render.lineRenderer = lineRenderer;
     render.vertexRenderer = callbacks;
     contexts.Add(render);
 }