aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-03-16 13:36:36 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2015-03-16 13:36:36 +0100
commit4338402e29d2c448c24f4efe6a788adb84f81785 (patch)
treeb22d52562f0dadf4532556cbbd93d8567d50ee23 /src/GraphicObjects
parent871f7388f22f642f913ea955662840ce8da2f7ce (diff)
OpenGL indirect drawing for ui quad
(shader and vao)
Diffstat (limited to 'src/GraphicObjects')
-rw-r--r--src/GraphicObjects/Scroller.cs52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/GraphicObjects/Scroller.cs b/src/GraphicObjects/Scroller.cs
index c896f3b4..b24eb784 100644
--- a/src/GraphicObjects/Scroller.cs
+++ b/src/GraphicObjects/Scroller.cs
@@ -163,57 +163,5 @@ namespace go
ctx.Restore();
}
-
-//
-// public override void Paint(ref Cairo.Context ctx, Rectangles clip = null)
-// {
-// if (!Visible)//check if necessary??
-// return;
-//
-// ctx.Save();
-//
-// Rectangle tmp;
-// tmp = Parent.ContextCoordinates(Slot);
-//// ctx.Rectangle(tmp);
-//// ctx.Clip();
-//
-//// if (clip != null)
-//// clip.clip(ctx);
-//
-// if (bmp == null)
-// UpdateGraphic ();
-//
-//
-//
-// int stride = 4 * Slot.Width;
-// using (ImageSurface source = new ImageSurface(bmp, Format.Argb32, tmp.Width, tmp.Height, stride)) {
-// ctx.SetSourceSurface (source, tmp.X, tmp.Y);
-// ctx.Paint ();
-// }
-//
-//
-// //clip to client zone
-//// ctx.Rectangle(Parent.ContextCoordinates(ClientRectangle + Slot.Position));
-//// ctx.Clip();
-//
-// //ctx.Translate (scrollX, scrollY);
-//
-// if (clip != null)
-// clip.Srcoll (this);
-////
-//// //clip.stroke (ctx, Color.Green);
-////
-////// if (scrollY < 0)
-////// Debug.WriteLine ("..");
-//// }
-//
-//
-//
-// if (child != null)
-// child.Paint(ref ctx, clip);
-//
-// ctx.Restore();
-// }
-
}
}