maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Is OpenGL ES 1.x supported in Qt SDK for N9? (https://talk.maemo.org/showthread.php?t=82100)

beemaster 2012-02-04 16:07

Is OpenGL ES 1.x supported in Qt SDK for N9?
 
Hello everybody,

I have a problem with porting my game to N9. The problem is that I am using OpenGL 1.x functions, like
Code:

glMatrixMode(GL_PROJECTION);
To use that stuff, I need to include gl.h header. I also use QGLWidget, which includes gl2.h header and produces conflicts with my code. I resolved this by separating the cpp files, so gl.h and gl2.h are never both included in one translation unit. After that I got a linker error:
Code:

error: undefined reference to `glMatrixMode'
I resolved that by adding -lGLES_CM to my LIBS variable in pro file. Compiling and linking was fine, but when the program started on the device, it just showed me nothing.

I decided to make an experiment and compile some example project from Qt SDK. I took project "textures", and added this code
Code:

#define OPENGL_ES_1
#undef OPENGL_ES_2

The result wasn't good either - I had black and white rectangles on my N9 screen instead of colored texture boxes.

Is it possible to disable Open GL ES 2.0 and just use Open GL ES 1.x?

I am using Qt SDK 1.1.4 on Windows 7, and I have Nokia N9 device.


All times are GMT. The time now is 08:24.

vBulletin® Version 3.8.8