Multiple Profiles

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

Multiple Profiles

elect
This post was updated on .
Hi,

I'd like to have in one application one GL3 compatible  and one GL4 core profile. I'd like to switch between them based on user input.

Is it possible? How?
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Profiles

gouessej
Administrator
Hi

As far as I know, you cannot modify the OpenGL capabilities used during the creation of the GLAutoDrawable but you can use different GLProfile instances and then different capabilities with different canvases / windows.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Profiles

elect
Ok, so essentially two glwindows, one per profile..

How can I put in standby one? I tried to instantiate both, each one with its own animator, and then on the init() pause the animator.

Then starting the one I want to start by resuming the animator.

The only Problem is that setVisible(false) don't really make it visible, just minimize it to icon...

is there a way to hide also the icon?