Main Menu

GL objects

Started by Oebele, December 22, 2013, 18:56:25

Previous topic - Next topic

Oebele

Hello,

I am entirely new to lwjgl and opengl, and I ran into issues while trying to learn this. I am especially confused about the following: how are functions split up between the different GLxx classes?
At first I thought that if I wanted to use for example OpenGL 3.2, I needed to used exclusively GL32, but now it seems I also need the other classes. Which of these statements is correct?
If I have to use multiple classes, how do I make sure I do not accidentally use old opengl that I shouldn't use if I want to use opengl 3, and how do I find the functions that I need?

A lot of questions, but I really hope you guys can help me out here.
Thanks in advance, Oebele

abcdef

You should visualise GLxx as the functions that were introduced for that particular version of open gl. So if you have a graphics card that can access GL32 functions then you can also use GL11, GL12, GL20 etc.

If you wish to find out what you can and can't use then the opengl documentation is what you need.

http://www.opengl.org/sdk/docs/


Oebele

Thank you very much - now it makes sense in my brain again :)