Re: [Plib-users] multiple windows
Brought to you by:
sjbaker
|
From: Steve B. <sjb...@ai...> - 2001-12-27 23:30:12
|
Anthony Corriveau wrote:
> I am trying to render one scene in multiple windows.
> It works except for the colors. The colors are only applied to the last
> window created before the call to ssgLoadAC().
Do you really mean "colours" in the sense that OpenGL means it? Perhaps
you really mean "textures"...in which case I have an answer for you.
> Like this
>
> glutCreateWindow("win1");
> glutCreateWindow("win2");
> ssgLoadAC(...)
> glutCreateWindow("win3");
> glutCreateWindow("win4");
You have to explicitly tell the windowing system that you want textures
to be shared between windows.
I forget how you do that right now (I don't often work with multiple
windows)...it's not a PLIB/SSG command - it's something in the windowing
system commands.
> Only win2 will have the colors applied to it. Is there any examples of
> multiple windows programs out there that use plib? I have found some multi
> window programs, but they do not use plib.
PrettyPoly opens multiple windows and renders the same model in each of them.
----------------------------- Steve Baker -------------------------------
Mail : <sjb...@ai...> WorkMail: <sj...@li...>
URLs : http://www.sjbaker.org
http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net
http://prettypoly.sf.net http://freeglut.sf.net
http://toobular.sf.net http://lodestone.sf.net
|