glDrawElementsBaseVertex in GL2GL3

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

glDrawElementsBaseVertex in GL2GL3

OudejansJ
Hello,

I would like to use this function in my project:

glDrawElementsBaseVertex(int mode, int count, int type, long indices_buffer_offset, int basevertex).

However, my system does not support the JOGL class GL3. It does support the extension
GL_ARB_draw_elements_base_vertex.

Is there a way to use the function glDrawElementsBaseVertex in GL2GL3?

OudejansJ

Reply | Threaded
Open this post in threaded view
|

Re: glDrawElementsBaseVertex in GL2GL3

gouessej
Administrator
Hi

glDrawElementsBaseVertex entered the core OpenGL in the version 3.2, the extension ARB_draw_elements_base_vertex was written against OpenGL 3.1. If your system supports at least OpenGL 3.1, it will work. GL2GL3 contains common methods of GL2 and GL3, glDrawElementsBaseVertex has nothing to do in this interface because it isn't supported in OpenGL 2.1. Please check which profiles are available and which graphics chip is used when you run your application if your machine has several GPUs.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: glDrawElementsBaseVertex in GL2GL3

OudejansJ
Dear Mr. Gouesse,

Thank you for your reply. I will use other functions instead.

You have been answering a lot of questions on the jogl forum. I appreciate your effort.

Yours Sincerely,

OudejansJ
Reply | Threaded
Open this post in threaded view
|

Re: glDrawElementsBaseVertex in GL2GL3

gouessej
Administrator
How did you check whether your graphics card supports ARB_draw_elements_base_vertex? If it really does, you should be able to get a profile supporting it. Otherwise, there is a real bug. Which graphics card do you use? What's the version number of your driver? Of course, if this method is not available, you'll have to use something else.
Julien Gouesse | Personal blog | Website