Ejemplo n.º 1
0
        internal void Render(IEnumerable <IEnumerable <Vector2> > paths, IEnumerable <Vector2> points)
        {
            var random = new Random(12);

            fbo.Execute(() =>
            {
                GL.Clear(ClearBufferMask.ColorBufferBit);
                foreach (var path in paths)
                {
                    byte[] color = new byte[2];
                    random.NextBytes(color);
                    GL.Color3(color[0], color[1], (byte)255);
                    DrawLine(path);
                }

                GL.Color3(1f, 0f, 0f);
                GL.PointSize(30f);
                DrawPoints(points);
            });
            GL.Clear(ClearBufferMask.ColorBufferBit);
            copyToFrameBuffer.Draw(fbo.Texture);
        }
Ejemplo n.º 2
0
 public void Render()
 {
     fbo.Execute(drawHandler);
     copyToFrameBuffer.Draw(fbo.Texture);
 }