S60 Open C
Examples for Open C Libraries

Examples for Open C Libraries

Table of Contents

OpenGL Ex
MMP File for OpenGL Ex
Source Code for OpenGL Ex

 


OpenGL Ex

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 Ex, in the OpenC environment.

 


MMP File for OpenGL Ex

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 ex
LIBRARY           cone.lib
LIBRARY           ws32.lib
CAPABILITY        None

 


Source Code for OpenGL Ex

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


Back to top

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