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 (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 (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
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 (http://javadoc.lwjgl.org/org/lwjgl/opengl/GL30.html).
Thank you for the quick reply!
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.
(http://i.imgur.com/gtDV05N.png)
Now you can happily click your link and follow the documentation.
Thanks, Was just looking for this type of doc ;D