Hello Guest

Core profile bindings

  • 4 Replies
  • 4989 Views
Core profile bindings
« on: December 05, 2015, 22:59:17 »
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

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
Re: Core profile bindings
« Reply #1 on: December 05, 2015, 23:21:54 »
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.

Re: Core profile bindings
« Reply #2 on: December 05, 2015, 23:33:45 »
Thank you for the quick reply!

*

Offline SHC

  • **
  • 94
    • GoHarsha.com
Re: Core profile bindings
« Reply #3 on: December 06, 2015, 03:01:04 »
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.

Re: Core profile bindings
« Reply #4 on: December 08, 2015, 19:22:38 »
Thanks, Was just looking for this type of doc  ;D