|
Nokia N97 SDK Example Applications Guide |
1. About this Example
2. Prerequisites
3. Desing and Implemention
This example can be extended to any kind of OpenGL ES application, but you might want to look at the other example applications as well for how to use other, different kinds of, OpenGL ES features.
Only classes used by this example are the basic UI framework baseclasses. Open GL ES itself is pure C method call API and doesn't use classes.
To work with this example application you need basic understanding on how to build S60 applications and basic undestanding of how Symbian (or COE) UI and application framework works. Also basic knowledge on OpenGL or OpenGL ES is required if you wish to modify the example.
Class design is very simple, the framework consists of the usual App, AppUi, Document and Container classes. CBumpMap class is the main OpenGL drawing class and handles the drawing of the bumpmapped rectangle. CFireFly handles moving and drawing of the firefly. CBumpMap class that owns the CFireFly instance also queries the current location of the firefly to use that as the light source coordinate in the bumpmapping calculations.
|
© Nokia 2009 |