Main Menu

Post GL11

Started by this_is_phil, August 17, 2010, 19:58:27

Previous topic - Next topic

this_is_phil

This is probably a bone question but if you are planning on using versions of OpenGL higher than 1.1 do you still have to fall back on using the GL11 class for the majority of the OpenGL functions as they appear to be missing in the GL12+ classes.

Matthias

Yes, this has been answered several times. And as you was not able to find it on the forum I'm posting a short summary:
In LWJGL the functions and enums are added to the class corresponding to the GL version / extension which first introduced them.
For example GL11.glBindTexture is still in use for GL 3.x or higher.

mstWeal

At first, this confused me, too. But now I think it's quite good like that.