Active Topics

 


Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on Feb 2012
#1
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:30.