maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   openGL ES problem! (https://talk.maemo.org/showthread.php?t=70075)

chun0216 2011-02-19 05:45

openGL ES problem!
 
Hello,
I am trying to develop OpenGL ES program on my N900 and I couldn't make lighting part working.
I used:
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
And it keep saying that GL_LIGHTING is not declared (or unknown)
I installed openGL using: http://wiki.maemo.org/OpenGL-ES
and I even followed the example in:
http://doc.qt.nokia.com/qt-maemo/opengl-hellogl-es.html
example but no luck for me.
Can anyone tells me how to make
GL_LIGHTING thing works in N900? Thank you so much!

Joorin 2011-02-19 10:47

Re: openGL ES problem!
 
As always when you have a problem compiling something:

Supply how you compiled your code. This includes flags and which compiler you used.

You should also include a minimal example where you get the problem.

mikkov 2011-02-19 11:01

Re: openGL ES problem!
 
+1 for Joorin

Best guestimate is that you are compiling&linking with GL ES 2.0 when you are trying to 1.1 api.


All times are GMT. The time now is 13:12.

vBulletin® Version 3.8.8