glTexBuffer and Texbuffer Objects samples

Started by
0 comments, last by kop0113 10 years, 4 months ago

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

Advertisement

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).

http://tinyurl.com/shewonyay - Thanks so much for those who voted on my GF's Competition Cosplay Entry for Cosplayzine. She won! I owe you all beers :)

Mutiny - Open-source C++ Unity re-implementation.
Defile of Eden 2 - FreeBSD and OpenBSD binaries of our latest game.

This topic is closed to new replies.

Advertisement