S60 3rd Edition SDK for Symbian OS Example Applications Guide |
OpenGL ES Simple Cube Pbuffer Example
1. About this Example
2. Prerequisites
3. Design and Implementation
This example is based on SimpleCube example but instead of onscreen window rendering the Pbuffer surface is used. To create a Pbuffer surface, a config that supports Pbuffers must be chosen.
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 build and run this example you need to have the S60 SDK installed and working correctly on your computer. You also need basic understanding on how to build S60 applications.
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.
A bitmap must be created where content of the Pbuffer surface is copied for displaying. The surface and the bitmap should be same size. To display the content of the Pbuffer surface the content is first copied to bitmap in the Draw() method and then rendered to the screen similarly as in Simple Cube Pixmap example.
The application has capability NONE as it only needs the rights to execute and access to the screen.
All Open GL ES examples support various screen modes. The examples also support changing the screen size while the application is running.
This inheritance list is sorted roughly, but not completely, alphabetically:
|
© Nokia 2006 |

|