Opentk/Source/Examples/OpenTK/Test/GameWindowStates.rtf

25 lines
1.1 KiB
Plaintext
Raw Normal View History

{\rtf1\ansi\ansicpg1253\deff0{\fonttbl{\f0\fnil\fcharset0 Arial;}}
{\colortbl ;\red163\green21\blue21;}
{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\cf1\lang1033\b\fs28 Introduction\b0\fs22\par
\par
This sample showcases the capabilities of the GameWindow. It tracks keyboard, mouse and window events and displays the state of the GameWindow in real time.\par
\par
\b\fs28 Controls\par
\b0\fs22\par
Numbers 1-4 change the WindowState\par
Numbers 5-7 change the WindowBorder\par
Arrow keys move the GameWindow\par
+/- keys change the size of the GameWindow\par
\par
\b\fs28 Implementation\par
\b0\fs22\par
This sample provides a straightforward use-case of the IGameWindow interface:\par
\par
1. The constructor hooks various IGameWindow events using anonymous delegates. The event handlers set flags to indicate that the current window state has changed.\par
\par
2. The RenderFrame event checks those flags and refreshes the displayed text if the window state has changed.\par
\par
3. The UpdateFrame event handles mouse and keyboard commands (see Controls section, above).\par
\par
}
2010-10-02 18:52:34 +00:00