Hi, Do anyone know if the glEnable(GL_LIGHT0); has to be inserted inside initializeGL()?
Can I use it inside paintGL()? thanks
Hi, Do anyone know if the glEnable(GL_LIGHT0); has to be inserted inside initializeGL()?
Can I use it inside paintGL()? thanks
Regards
You can use it whereever you want, as it is possible to turn the light on and off. The same goes with other glEnable() (and of course glDisable() ) calls.
Bookmarks