Hi, Do anyone know if the glEnable(GL_LIGHT0); has to be inserted inside initializeGL()?
Can I use it inside paintGL()? thanks
Printable View
Hi, Do anyone know if the glEnable(GL_LIGHT0); has to be inserted inside initializeGL()?
Can I use it inside paintGL()? thanks
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.