Beispiel #1
0
        public Window(WindowFlags flags)
            : base(null)
        {
            m_flags = flags | WindowFlags.Controlling;

            if ((m_flags & WindowFlags.FullScreen) != 0) // auto scale, TODO: separate flag or even remove this
            {
                Position = Vector2.Zero;
                Scale    = WindowController.Instance.ScreenWidth / Size.X;
            }

            m_children = new WindowObjectArray <WindowObject> ();
        }