~2012

Get maximum supported lights in openFrameworks

It's actually quite simple just paste the following code in your setup() method:

    int lights;
    glGetIntegerv(GL_MAX_LIGHTS, &lights);
    ofLogError(ofToString(lights));

This will print the number of maximum supported lights. Usually this is 8.

Want more? You'll have to dive deep.

On Linux and OSX you could also run

glxinfo -l

To show you a list of limitations of your card.