aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/OpenTKGameWindow.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-09 12:10:12 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-09 12:10:12 +0200
commitea0ee8408e82a19c00637aaa054165bbb49805ba (patch)
tree63ff20a54a19c992872db865dcea34237ba2a24c /src/OpenTKGameWindow.cs
parent302fd15f6c9cd455d61965f1edfae6415eacd1ca (diff)
* Tests.csproj:
* GOLIBTests.cs: * GOLIBTest_1.cs: * GOLIBTest_0.cs: * GOLIBTest_5.cs: * GOLIBTest_3.cs: * GOLIBTest_fps.cs: * GOLIBTest_4.1.cs: * GOLIBTest_1.2.cs: * GOLIBTest_1.1.cs: * GOLIBTest_meter.cs: * GOLIBTest_Label.cs: * GOLIBTest_stack.cs: * GOLIBTest_HStack.cs: * GOLIBTest_Spinner.cs: * GOLIBTest_Scrollbar.cs: * GOLIBTest_Container.cs: * GOLIBTest_Expandable.cs: code cleaning, grouped tests * Interface.cs: * OpenTKGameWindow.cs: ClearInterface function
Diffstat (limited to 'src/OpenTKGameWindow.cs')
-rwxr-xr-xsrc/OpenTKGameWindow.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/OpenTKGameWindow.cs b/src/OpenTKGameWindow.cs
index d34d6bfa..fa68cb89 100755
--- a/src/OpenTKGameWindow.cs
+++ b/src/OpenTKGameWindow.cs
@@ -88,7 +88,13 @@ namespace go
g.Visible = false;//trick to ensure clip is added to refresh zone
GraphicObjects.Remove (g);
}
-
+ /// <summary> Remove all Graphic objects from top container </summary>
+ public void ClearInterface()
+ {
+ foreach (GraphicObject g in GraphicObjects)
+ g.Visible = false;
+ GraphicObjects.Clear ();
+ }
public void Quit ()
{
this.Exit ();