This project is read-only.

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 8:45 PM by AlexKhomich, version 2


No comments yet.