mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 17:05:37 +00:00
8dcb8601a2
Hopefully this is the first and last time we have to do this.
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
{\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
|
||
}
|
||
|