Core profile bindings

Started by tglanz, December 05, 2015, 22:59:17

Previous topic - Next topic

tglanz

Hi there, a first timer here :)

I have some minor background in OpenGL, mainly with c++, and now trying to advance with Scala and the lwjgl framework.

I am a bit confused regarding the functions binding of the core profile by this framework.
Have noticed that some functions and definitions specified by the OpenGL APIs, do not exist in the GL[xy] imports (not at the code nor the docs)

For example, The function ClearBuffer[**](...) exists in GL 4.3 specifications
- see: https://www.opengl.org/registry/doc/glspec43.core.20120806.pdf
But it isn't implemented in lwjgl
- see lwjgl binding docs: http://javadoc.lwjgl.org/org/lwjgl/opengl/GL43.html

It doesn't look like only newer GL versions don't have all the bindings, there are specs missing from GL33 etc... I guess that im missing something here

Any pointers?
Thanks

spasi

Each GLxx class does not have all functions available up to that version. They only have functions that were first introduced in that particular version. The ClearBuffer functions were introduced in OpenGL 3.0, so you'll find them in GL30.

tglanz

Thank you for the quick reply!

SHC

An easy way to find your function is to use the Javadoc index page.

http://javadoc.lwjgl.org/index-all.html

And from there, use the browser's find feature to find your function. Searching for glClearBuffer gave me these results.



Now you can happily click your link and follow the documentation.

tglanz

Thanks, Was just looking for this type of doc  ;D