From f1f143775245695a0aaa8cd2538d3b3382f9ea56 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Fri, 12 Feb 2016 13:05:32 +0100 Subject: [PATCH] testing clipping rect registration, clear and clip, not working --- Tests/GOLIBTest_4.cs | 2 +- Tests/GOLIBTests.cs | 2 +- Tests/Interfaces/clip0.crow | 4 +- Tests/Interfaces/clip2.crow | 9 ++- src/GraphicObjects/GraphicObject.cs | 16 ++--- src/GraphicObjects/Group.cs | 1 + src/GraphicObjects/IGOLibHost.cs | 1 - src/GraphicObjects/PrivateContainer.cs | 7 +- src/OpenTKGameWindow.cs | 92 ++++++++++++++------------ 9 files changed, 76 insertions(+), 58 deletions(-) diff --git a/Tests/GOLIBTest_4.cs b/Tests/GOLIBTest_4.cs index 8fbfe4ec..9c8fe385 100644 --- a/Tests/GOLIBTest_4.cs +++ b/Tests/GOLIBTest_4.cs @@ -171,7 +171,7 @@ namespace test { if (!e.Mouse.IsButtonDown (MouseButton.Left)||sender!=c) return; - redrawClip.AddRectangle (c.ScreenCoordinates(c.Slot)); + clipping.AddRectangle (c.ScreenCoordinates(c.Slot)); c.Left += e.XDelta; c.Top += e.YDelta; c.registerForGraphicUpdate (); diff --git a/Tests/GOLIBTests.cs b/Tests/GOLIBTests.cs index 622d1ce7..c14277f4 100644 --- a/Tests/GOLIBTests.cs +++ b/Tests/GOLIBTests.cs @@ -37,9 +37,9 @@ namespace test int frameCpt = 0; int idx = 0; string[] testFiles = { - "clip2.crow", "clip0.crow", "clip1.crow", + "clip2.crow", "0.crow", "5.crow", "testCombobox.goml", diff --git a/Tests/Interfaces/clip0.crow b/Tests/Interfaces/clip0.crow index 2ebea9ff..dbe6eb34 100755 --- a/Tests/Interfaces/clip0.crow +++ b/Tests/Interfaces/clip0.crow @@ -1,9 +1,9 @@  - -