Thread: [sdljava-users] Using multiple contexts with gljava
Status: Beta
Brought to you by:
ivan_ganza
From: Gregor <Gre...@gm...> - 2005-10-15 14:24:38
|
Hi! Using multiple contexts with gljava not really possible at the moment as the underlying GLEW needs to be informed about context changes (provided, it is compiled with support for context changes in the first place), but that function is not exported yet. However, I'll need it soon because I need more than one context in Moonlight|3D in the future. Could you please look into this matter? It's explained quite well on the GLEW homepage. Regards, Gregor |
From: Ivan Z. G. <iva...@ya...> - 2005-10-16 14:38:17
|
Unfortunately I don't think this is currently possible. The reason is that SDL only supports one window currently. SDL 2.0 I belive is supposed to add multi-window capability. Right now the GL context is initialized and created by the SDL layer when setVideoMode() is called with the SDL_OPENGL flag set. sdljava doesn't create the contexts on its own. I really wish we could have multiple windows but I don't see how its currently possible... -Ivan/ Gregor M=FCckl wrote: >Hi! > >Using multiple contexts with gljava not really possible at the moment as= the=20 >underlying GLEW needs to be informed about context changes (provided, it= is=20 >compiled with support for context changes in the first place), but that=20 >function is not exported yet. However, I'll need it soon because I need = more=20 >than one context in Moonlight|3D in the future. > >Could you please look into this matter? It's explained quite well on the= GLEW=20 >homepage. > >Regards, >Gregor > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Power Architecture Resource Center: Free content, downloads, discussions= , >and more. http://solutions.newsforge.com/ibmarch.tmpl >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > =20 > |
From: Gregor <Gre...@gm...> - 2005-10-16 17:30:31
|
Hi! It is unfortunate that you have such a view on gljava considering your=20 earliser statement that gljava should be useable without sdljava. And in th= at=20 casse it is well possible to add multiple contexts. And as far as I know SDL 1.3 already has support for multiple contexts, but= =20 not necessarily multiple SDL windows (these are not the same, mind you!). Regards, Gregor On Sunday 16 October 2005 16:38, Ivan Z. Ganza wrote: > Unfortunately I don't think this is currently possible. The reason is > that SDL only supports one window currently. SDL 2.0 I belive is > supposed to add multi-window capability. > > Right now the GL context is initialized and created by the SDL layer > when setVideoMode() is called with the SDL_OPENGL flag set. sdljava > doesn't create the contexts on its own. > > I really wish we could have multiple windows but I don't see how its > currently possible... > > -Ivan/ > > Gregor M=FCckl wrote: > >Hi! > > > >Using multiple contexts with gljava not really possible at the moment as > > the underlying GLEW needs to be informed about context changes (provide= d, > > it is compiled with support for context changes in the first place), but > > that function is not exported yet. However, I'll need it soon because I > > need more than one context in Moonlight|3D in the future. > > > >Could you please look into this matter? It's explained quite well on the > > GLEW homepage. > > > >Regards, > >Gregor > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by: > >Power Architecture Resource Center: Free content, downloads, discussions, > >and more. http://solutions.newsforge.com/ibmarch.tmpl > >_______________________________________________ > >sdljava-users mailing list > >sdl...@li... > >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |
From: Ivan Z. G. <iva...@ya...> - 2005-10-16 21:04:10
|
Hmm, Its a good point. There is nothing infact that is making gljava depend on sdljava at the level of code. However, having said that, currently, you cannot obtain a GL context in any way except via the setVideoMode() call. Nothing is stopping someone from initializing an opengl context on their own and then using it via gljava. I will look into this in more detail. I wasn't aware that 1.3 had that capability. -Ivan/ Gregor M=FCckl wrote: >Hi! > >It is unfortunate that you have such a view on gljava considering your=20 >earliser statement that gljava should be useable without sdljava. And in= that=20 >casse it is well possible to add multiple contexts. > >And as far as I know SDL 1.3 already has support for multiple contexts, = but=20 >not necessarily multiple SDL windows (these are not the same, mind you!). > >Regards, >Gregor > >On Sunday 16 October 2005 16:38, Ivan Z. Ganza wrote: > =20 > >>Unfortunately I don't think this is currently possible. The reason is >>that SDL only supports one window currently. SDL 2.0 I belive is >>supposed to add multi-window capability. >> >>Right now the GL context is initialized and created by the SDL layer >>when setVideoMode() is called with the SDL_OPENGL flag set. sdljava >>doesn't create the contexts on its own. >> >>I really wish we could have multiple windows but I don't see how its >>currently possible... >> >>-Ivan/ >> >>Gregor M=FCckl wrote: >> =20 >> >>>Hi! >>> >>>Using multiple contexts with gljava not really possible at the moment = as >>>the underlying GLEW needs to be informed about context changes (provid= ed, >>>it is compiled with support for context changes in the first place), b= ut >>>that function is not exported yet. However, I'll need it soon because = I >>>need more than one context in Moonlight|3D in the future. >>> >>>Could you please look into this matter? It's explained quite well on t= he >>>GLEW homepage. >>> >>>Regards, >>>Gregor >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by: >>>Power Architecture Resource Center: Free content, downloads, discussio= ns, >>>and more. http://solutions.newsforge.com/ibmarch.tmpl >>>_______________________________________________ >>>sdljava-users mailing list >>>sdl...@li... >>>https://lists.sourceforge.net/lists/listinfo/sdljava-users >>> =20 >>> >>------------------------------------------------------- >>This SF.Net email is sponsored by: >>Power Architecture Resource Center: Free content, downloads, discussion= s, >>and more. http://solutions.newsforge.com/ibmarch.tmpl >>_______________________________________________ >>sdljava-users mailing list >>sdl...@li... >>https://lists.sourceforge.net/lists/listinfo/sdljava-users >> =20 >> > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Power Architecture Resource Center: Free content, downloads, discussions= , >and more. http://solutions.newsforge.com/ibmarch.tmpl >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > =20 > |