multi-contexting

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

multi-contexting

mirza
hi all, what multi-contexting actually means? anyone explain with examples? how it is achieved in JOGL? thanks
Reply | Threaded
Open this post in threaded view
|

Re: multi-contexting

gouessej
Administrator
Hi

A single OpenGL application can use several OpenGL contexts. A context is necessary to store some data used by OpenGL, it is explained here:
http://www.opengl.org/wiki/OpenGL_Context

Sometimes, an application would like to preserve and use the same context even though one of its panel is no longer visible, it uses a shared context that can be passed to a JOGL canvas (GLCanvas, GLWindow, GLJPanel).

Certain changes on a surface or a panel can cause the destruction of the context, especially when NEWT is not used.

There are some examples on the official repository.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: multi-contexting

Sven Gothel
Administrator
In reply to this post by mirza
On 11/05/2013 06:44 AM, mirza [via jogamp] wrote:
> hi all, what multi-contexting actually means? anyone explain with examples?
> how it is achieved in JOGL? thanks

Have a look at unit tests:
  com.jogamp.opengl.test.junit.jogl.acore.TestSharedContext*

(within jogl repo)

You may also like to follow latest 'convenience' changes:
  <https://jogamp.org/bugzilla/show_bug.cgi?id=776>

~Sven



signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: multi-contexting

gouessej
Administrator
Sven Gothel wrote
You may also like to follow latest 'convenience' changes:
  <https://jogamp.org/bugzilla/show_bug.cgi?id=776>
I'll probably have to modify Ardor3D when JOGL 2.2 is out.
Julien Gouesse | Personal blog | Website