Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1452 chris 1
{\rtf1\ansi\deff0{\fonttbl{\f0\fswiss\fprq2\fcharset161{\*\fname Arial;}Arial Greek;}{\f1\fswiss\fprq2\fcharset0 Arial;}{\f2\fnil\fcharset0 Courier New;}}
2
{\colortbl ;\red163\green21\blue21;}
3
{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\nowidctlpar\cf1\lang1032\b\f0\fs28 Introduction\b0\fs22\par
4
\par
5
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
6
\lang1032\f0\par
7
\b\fs28 Controls\par
8
\b0\fs22\par
9
Move or resize the window with your mouse.\par
10
\lang1033\f1 Press F11 to toggle between fullscreen and windowed modes.\par
11
Press Esc to exit.\lang1032\f0\par
12
\par
13
\b\fs28 Implementation\par
14
\b0\fs22\par
15
\lang1033\f1 This samples subclasses GameWindow and overrides its Load, Unload, Resize, UpdateFrame and RenderFrame events.\par
16
\par
17
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
18
\par
19
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
20
\par
21
3. The Resize event is responsible for refreshing the viewport whenever the user resizes the window.\par
22
\par
23
4. The UpdateFrame event is responsible for updating the game state.\par
24
\par
25
5. The RenderFrame event is responsible for rendering all game objects.\cf0\f2\par
26
\pard\par
27
}
28