aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Interface.cs4
-rwxr-xr-xsrc/OpenTKGameWindow.cs8
2 files changed, 8 insertions, 4 deletions
diff --git a/src/Interface.cs b/src/Interface.cs
index d7a35f81..63160cf5 100644
--- a/src/Interface.cs
+++ b/src/Interface.cs
@@ -113,9 +113,7 @@ namespace go
return tmp;
}
public static void Load<T>(string file, out T result, object hostClass = null)
- {
- //result = (T)(Load (file, hostClass) as object);
-
+ {
GOMLResolutionStack.Push(new List<DynAttribute>());
XmlSerializerNamespaces xn = new XmlSerializerNamespaces();
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 ();