View Full Version : Opengl in QT
mickey
3rd June 2006, 20:50
Hi, Do anyone know if the glEnable(GL_LIGHT0); has to be inserted inside initializeGL()?
Can I use it inside paintGL()? thanks
wysota
4th June 2006, 09:22
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.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.