Re: regarding multiple channels on a single pipe

New Message Reply Date view Thread view Subject view Author view

bmcquear++at++dw3f.ess.harris.com
Sat, 07 Oct 95 08:07:30 -0400


>>I create two channels with completly different FOV, and viewing directions and....

Anita,

You can toggle between channels using pfChanTravMode like in the
following fragment...
(Note: channels have been previously set up for each to take half the viewport)

      /*-------------------------------------------------
|-- Set the pfChannel to the active channel
      -------------------------------------------------*/
      if (activeChannel == CHANNEL_1)
      {
         /*--------------------------------------------
|-- Make sure the channel is on
         --------------------------------------------*/
         pfChanTravMode(channel, PFTRAV_DRAW, PFDRAW_ON);

         /*---------------------------------------
|-- Set the viewport one to full window
         ---------------------------------------*/
         pfChanViewport(channel, 0.0f, 1.0f, 0.0f, 1.0f);

         /*--------------------------------------------
|-- Turn off the other channel
         --------------------------------------------*/
         pfChanTravMode(channel2, PFTRAV_DRAW, PFDRAW_OFF);
      }

      else if (activeChannel == CHANNEL_2)
      {

         /*--------------------------------------------
|-- Make sure the channel is on
         --------------------------------------------*/
         pfChanTravMode(channel2, PFTRAV_DRAW, PFDRAW_ON);

         /*---------------------------------------
|-- Set the viewport two to full window
         ---------------------------------------*/
         pfChanViewport(channel2, 0.0f, 1.0f, 0.0f, 1.0f);

         /*--------------------------------------------
|-- Turn off the other channel
         --------------------------------------------*/
         pfChanTravMode(channel, PFTRAV_DRAW, PFDRAW_OFF);

      }

-----------------------------------------------------------
Bruce McQueary | Phone 407-984-5964 (Office)
Harris Corporation, ISD | 407-984-6813 (Lab)
P.O. Box 98000 | Fax 407-984-6323
W3-3207 | email: bmcquear++at++harris.com
Melbourne, FL 32902 |
-----------------------------------------------------------
  


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:56 PDT

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