Examples for Open C Libraries |
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.
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