/// <summary>Immediately releases all resources owned by the instance</summary> public void Dispose() { if (_flatGuiGraphics != null) { _flatGuiGraphics.Dispose(); _flatGuiGraphics = null; } }
/// <summary>Initializes a new gui painter for traditional GUIs</summary> /// <param name="contentManager">Content manager that will be used to load the skin resources</param> /// <param name="skinStream">Stream from which the GUI Visualizer will read the skin description</param> protected FlatGuiVisualizer(ContentManager contentManager, Stream skinStream) { _renderers = new Dictionary <Type, IControlRendererAdapter>(); // Obtain default GUI renderers FetchRenderers(); _flatGuiGraphics = new FlatGuiGraphics(contentManager, skinStream); _controlStack = new Stack <ControlWithBounds>(); }
/// <summary>Initializes a new scissor manager</summary> /// <param name="flatGuiGraphics">GUI graphics interface the scissor rectangle will be managed for</param> public ScissorKeeper(FlatGuiGraphics flatGuiGraphics) { _flatGuiGraphics = flatGuiGraphics; }