This sample \lang1033\f1 explains how to use the \lang1032\f0 GameWindow\lang1033\f1 class. It creates a new GameWindow, hooks the necessary events and renders a simple triangle on screen.\par
\lang1032\f0\par
\b\fs28 Controls\par
\b0\fs22\par
Move or resize the window with your mouse.\par
\lang1033\f1 Press F11 to toggle between fullscreen and windowed modes.\par
Press Esc to exit.\lang1032\f0\par
\par
\b\fs28 Implementation\par
\b0\fs22\par
\lang1033\f1 This samples subclasses GameWindow and overrides its Load, Unload, Resize, UpdateFrame and RenderFrame events.\par
\par
1. The Load event is responsible for setting up persistent OpenGL state (e.g. background color) and loading the necessary resources (e.g. textures). This sample is very simple, so we don't need to load any resouces.\par
\par
2. The Unload event is responsible for cleaning up the resources we loaded. This sample is very simple, so we don't need to unload any resouces.\par
\par
3. The Resize event is responsible for refreshing the viewport whenever the user resizes the window.\par
\par
4. The UpdateFrame event is responsible for updating the game state.\par
\par
5. The RenderFrame event is responsible for rendering all game objects.\cf0\f2\par