Lesson 1. Manipulating with window settings

Lets add constructor for this game instance. There we can adjust window title, size and mode (default 640x480 windowed). BTW window parameters can be accessed from anywhere and anytime with Game.Window. State changes are accumulated and applied before next frame beginning.

        public SimpleGame() {
            Window.Title = "Hello world!";
            Window.Width = 800;
            Window.Height = 600;
            Window.Fullscreen = true;
        }

Fullscreen state automatically toggles on Alt+Enter key combination. So you can easilly back to window mode pressing Alt+Enter.

Last edited May 9, 2010 at 7:45 PM by AlexKhomich, version 2

Comments

No comments yet.