Sign in to follow this  
emt

glTexBuffer and Texbuffer Objects samples

Recommended Posts

Using OpenGL desktop version, there are three look alike API's

  • glTexBuffer
  • glTexBufferARB
  • glTexBufferEXT

What are the suggested resources for the sample implementations of these APIs ? How these are related with texture buffer objects ?

Looking for references available other then khronos.org and opengl.org

Edited by emt

Share this post


Link to post
Share on other sites

glTexBuffer is part of the OpenGL 3.1+ standard.

glTexBufferARB is part of OpenGL as an ARB  (Architecture Review Board) extension.

glTexBufferEXT is part of OpenGL as a vendor (NVIDIA, ATI etc...) extension (i.e if found you download gl2.h from NVIDIA's website).

 

So basically, if you use an old version of OpenGL you need to use the ARB or EXT versions.

 

However, if you use something like libglew, it will match the correct function (pointer) to glTexBuffer so you don't need to worry about what is providing the actual functionality, you just use "normal" OpenGL.

 

For sample implementations, you might want to look at open-source software implementations of OpenGL (such as mesa http://cgit.freedesktop.org/mesa/mesa/tree/src).

Edited by Karsten_

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this