LWJGL Forum

Programming => OpenGL => Topic started by: this_is_phil on August 17, 2010, 19:58:27

Title: Post GL11
Post by: this_is_phil on August 17, 2010, 19:58:27
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.
Title: Re: Post GL11
Post by: Matthias on August 17, 2010, 20:09:19
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.
Title: Re: Post GL11
Post by: mstWeal on August 18, 2010, 00:13:06
At first, this confused me, too. But now I think it's quite good like that.