Retrieving OpenGL Framebuffer and Renderbuffer ID's (Platform Independently)


Is there a platform-independent means of retrieving OpenGL framebuffer and renderbuffer IDs of SDL render textures and, if applicable, the default frame and rendering buffers created by SDL2 (i.e. OS X, iOS)?

I can of-course modify the SDL2 source code to provide this information to a custom structure, but I’d rather use the SDL2 API if possible.

Thank you.

The SDL2 render API does not provide direct access to the resources of the backend. You would have to dig for them with OpenGL calls. It would probably easier to modify the source code.