Re: Channel swaping

New Message Reply Date view Thread view Subject view Author view

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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu Dec 17 1998 - 05:42:42 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.