Hi!
I’m porting a glue library (a simple 2d gfx library) to jogl. One thing which I need to implement is offscreen rendering. And since it’s a library used by other applications, I cannot put restraints on thread usage, so it should work from any thread (eg: application creates image, gets graphics context, renders to graphic context).
What should I use? I’m pretty new to open gl in general, but I’ve been googling a lot. So far I tried:
- pbuffers - not supported by every platform (for example on my laptop with intel chip)
- framebuffer objects - I still need an existing GL instance to be able to render to it.
- rendering to AUX buffers - they are limited in number, limited in screen size, can render to it only during normal paint,etc
And I had the threading issue with all of the solution. What should I try instead?
Thanks in advance!
/Pal Szasz