The drawLight()
function is a light debugging tool.
drawLight() takes as an argument the GL index of the lamp : GL_LIGHT0, GL_LIGHT1... and displays a symbolic representation of the light. This function is usefull for debugging your light setup.
#include <QGLViewer/qglviewer.h> class Viewer : public QGLViewer { protected : virtual void draw(); virtual void init(); virtual QString helpString() const; };