public GameManager(RenderWindow window) { _window = window; // blank display ActiveDisplay = new Display(new Vector2u(window.Size.X, window.Size.Y)); tex = new RenderTexture(window.Size.X, window.Size.Y); }
/// <summary> /// Constructor for GUIs that attach to a specific display /// </summary> /// <param name="target"></param> /// <param name="display"></param> public Gui(RenderTarget target, Display display) : this(target) { display.OnKeyPress += window_KeyPressed; display.OnKeyRelease += window_KeyReleased; display.OnMousePress += window_MouseButtonPressed; display.OnMouseRelease += window_MouseButtonReleased; display.OnMouseMove += window_MouseMoved; display.OnMouseWheelMove += window_MouseWheelMoved; // No text entered or resized events for display yet. }