S60 Open C
Examples for Open C Libraries

Examples for Open C Libraries

Table of Contents

OpenGL ES
MMP File for OpenGL ES
Source Code for OpenGL ES

 


OpenGL ES

This example demonstrates how to create a simple interactive OpenC 3D application, on Symbian OS. The program described here displays a rotating cube, that can be moved using the up and down keys. Press the right soft key to exit the application. This application can be easily adapted to make much more interesting 3D applications, using OpenGL ES, in the OpenC environment.

 


MMP File for OpenGL ES

TARGET             	openglex.exe
TARGETTYPE         	exe
UID                		0x100039CE 0xA0001326
VENDORID           	0
START RESOURCE     ..\data\openglex.rss
HEADER
TARGETPATH         \\resource\\apps
LANG               SC
END //RESOURCE
SOURCEPATH         ..\data
START RESOURCE     openglex_reg.rss
#ifdef WINSCW
TARGETPATH         \private\10003a3f\apps
#else
TARGETPATH         \private\10003a3f\import\apps
#endif
END //RESOURCE
SOURCEPATH        ..\src
SOURCE            openglex.cpp
SOURCE            gamecontroller.cpp
SOURCE            game.cpp
USERINCLUDE       ..\inc
SYSTEMINCLUDE     \epoc32\include
// Open C headers
SYSTEMINCLUDE     \epoc32\include\stdapis 
// Using main() as entry point
STATICLIBRARY     libcrt0.lib
LIBRARY           libc.lib       // for stdlib
LIBRARY           euser.lib 
LIBRARY           libgles_cm.lib // for opengl es
LIBRARY           cone.lib
LIBRARY           ws32.lib
CAPABILITY        None

 


Source Code for OpenGL ES

Go to this location \nokia_plugin\openc\s60opencex\opencopenglex to view the source code for this example.

NOTE: This code has been tested on Carbide.

Give feedback of this article


©Nokia 2008

Back to top


All rights reserved. This documentation can be used in the connection with this Product to help and support the user.