glGenBuffersARB not available

Hello
I´m very new in this area and hope an expert can help me. I wrote a programm by using jogl and it went well until now.
Now I try to use vertex buffer objects … I found examples and in those examples the method
glGenBuffersARB(…) is used. I try to implement it but in my environment the method is undefined ??
I checked if the VBO functionality is available by using the following methods
boolean bAvailable = gl2.isFunctionAvailable(“glGenBuffersARB”);
bAvailable = gl2.isExtensionAvailable(“GL_ARB_vertex_buffer_object”);
The functionality is available.
I checked other code samples and saw that glGenBuffers(…) is used.
My questions:

  1. What is the difference between glGenBuffers(…) and glGenBuffersARB(…)
  2. Why is glGenBuffersARB(…) undefined even the functionality is available ?
  3. Can I use glGenBuffers(…)

Jogl version : jogl-2.0-b23-20110303-windows-i586
OGL version : GL_VERSION: 2.1.2

thanks for answers

glGenBuffersARB is the old version of the function before VBOs were moved into core OpenGL. JOGL merges glGenBuffersARB and glGenBuffers so you don’t need to worry which one to use (theoretically on old hardware, only the ARB version would exist but JOGL takes care of that for you). Similarly, all other VBO related calls can drop the ARB, such as glBufferData or glBindBuffer instead of glBufferDataARB, etc.

Puuuuh that sounds good, I was a little bit confused :slight_smile:

Thank you for your answer …