Re: Channel swaping
Mario Veraart (rioj7++at++fel.tno.nl)
Thu, 17 Dec 1998 14:39:51 +0100 (MET)
>
> Hello pfAll,
>
> Thanks you so much for your answers about HUD and multi channel. It
> works find now.
>
> My simulation consist of three channels(pChan[0...2]) and optionnaly a
> zoom(pChan[3]) that take the entire windows area. My three channels are
> attach and I try to set up the fourth one (attach too), and to control
> the active channel in the CB drawing like this :
> drawCB:
> if(pState->zoomFlag)
> {
> if(chan == pState->pChan[3])
> pfDraw();
> }
> else
> {
> if(chan != pState->pChan[3])
> {
> pfDraw();
> ...
> }
> }
>
> (pState is a shared memory structure)
>
> The problem is the fourth channel always overlay the others channel.
> I have only one pipe.
Disable the clearing of the color-buffer when you are not in zoomstate
if(pState->zoomFlag)
{
if(chan == pState->pChan[3])
chan->clear();
pfDraw();
}
else
{
if(chan != pState->pChan[3])
{
chan->clear();
pfDraw();
...
}
}
Mario
This archive was generated by hypermail 2.0b2
on Thu Dec 17 1998 - 05:42:42 PST