Reply
Thread Tools
Posts: 7 | Thanked: 1 time | Joined on Aug 2010 @ USA
#1
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!
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#2
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.
 

The Following User Says Thank You to Joorin For This Useful Post:
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#3
+1 for Joorin

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

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:52.