Example #1
0
        public BaseCore()
        {
            m_SystemGraphics = System.Drawing.Graphics.FromHwnd(this.Window.Handle);
            Settings.ScreenDPI = new Vector2(m_SystemGraphics.DpiX / 96f, m_SystemGraphics.DpiY / 96f);

            m_Graphics = new GraphicsDeviceManager(this);
            m_Graphics.IsFullScreen = false;
            m_Graphics.PreferredBackBufferWidth = 256;
            m_Graphics.PreferredBackBufferHeight = 240;
            m_Graphics.SynchronizeWithVerticalRetrace = false;

            m_Input = new InterXLib.InputState();
            m_Input.Initialize(this.Window.Handle);
            m_Actions = new ActionBinder();

            m_SpriteBatch = new InterXLib.Display.YSpriteBatch(this);
            this.Components.Add(m_SpriteBatch);

            m_XGUI = new GUIManager();
            this.IsMouseVisible = true;
        }
Example #2
0
 public virtual void ReceiveInputActions(ActionBinder actions)
 {
 }