Login  Register

OpenGL ES 3.x: Some functions seems missing

classic Classic list List threaded Threaded
5 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

OpenGL ES 3.x: Some functions seems missing

Tianscar
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: OpenGL ES 3.x: Some functions seems missing

gouessej
Administrator
6035 posts
Maybe look for glGetPointeri_vEXT​.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: OpenGL ES 3.x: Some functions seems missing

Sven Gothel
Administrator
2933 posts
This post was updated on Aug 05, 2023; 6:02pm.
In reply to this post by Tianscar
We must track the buffers bound via glBindBuffer() ourselves.
To retrieve the bound buffer you may use getBoundBuffer(..), getBufferStorage(..)
https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GLBase.html#getBoundBuffer(int)
https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GLBase.html#getBufferStorage(int)

Yes, its our client side tracking and implementation, hence no 'gl' prefix,
see overview in GLBufferStorage
https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GLBufferStorage.html

The (NIO) buffers are tracked to ensure their lifecycle matches their OpenGL counterpart (lifecycle/usage).

We could implement glGetBufferPointerv() using the above, but didn't so far but excluded their binding.

Hope that helps a little

Test Case: /jogl/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestMapBufferRead01NEWT.java
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: OpenGL ES 3.x: Some functions seems missing

Sven Gothel
Administrator
2933 posts
In reply to this post by Tianscar
.. further .. re OpenGL debugging.

I also have chosen to divert a little from the OpenGL API,
exposing the driver's debug facility.

See GLDebugListener
https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GLDebugListener.html

Details on how to enable native GL debugging is described in
https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GLContext.html#enableGLDebugMessage(boolean)

.. here we also explain how to ensure the context is debug capable via CTX_OPTION_DEBUG
https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GLContext.html#CTX_OPTION_DEBUG

Test case: /jogl/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLDebug00NEWT.java

+++

Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: OpenGL ES 3.x: Some functions seems missing

Sven Gothel
Administrator
2933 posts