From: Sven G. <sgo...@ja...> - 2002-05-03 20:03:48
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 03 May 2002 17:58, Franck Delache wrote: > Hi there, > > I try to change the screen resolution on the fly. Ive read on OpenGL > sites, that I needed to close my OpenGL context then change the resolution, > and after that recreate all my OpenGL Context. > But using OpenGL 4 Java, I dont know how can I do that. I tried to call a > Canvas.cvsDispose() to dispose my OpenGL context, then change the > resolution, and after that recreate the OpenGL context, but the result is > really strange. It seems that my first OpenGLContext is not really > released, and this gives me some flicking problem (it seems that the openGL > and the other windows application want both have the focus, and I can see a > swap between each of them at the frequency of my fps). > > Could anyone give me some tips to cleanly close the GLContext, and how to > rebuild it to do it works! > > I use jdk 1.3.1_01, and GL4Java 2.7.2.0 on a win2k machine, with ATI Radeon > VE card. > > Thanks in advance. > > Franck well, please try the CVS version or wait till 2.8.3 is release ... HINT: the gl4java.applet.SimpleGLAnimApplet reacts in the double mouse click on the canvas with: - remove the GLAnimCanvas of its parent container - GLContext will be destroyed here ! - create an own frame - add the GLAnimCanvas to the frame - GLContext will be created with the first view .. i hope this helps .. but the upper action _is_ debugged within CVS only ... cheers, sven - -- health & wealth mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440 ; fax : +49-521-2399442 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE80skgHdOA30NoFAARAkLNAJoC8B6cEIqrFp8Lv+IJyeMeW1TCHgCgjmnE kre26GTf9LjhNNesizW09K0= =AUTY -----END PGP SIGNATURE----- |