pfuSmoke

New Message Reply Date view Thread view Subject view Author view

Bill Balloni (m218822++at++fltsim.MDC.COM)
Thu, 3 Nov 1994 08:33:21 -0600


Thanks to all that responded. As was pointed out by Jean Daigle I was
using a global variable to hold the eye point (necessary for pfuDrawSmokes).
In the multiprocessing model this is a no-no. I had started the proper
implementation of passing data to the draw process by using channel
data but didn't finish it. The fix then was simply to use the draw callback
data pointer. Below is the fix.

Thanks again,

Bill Balloni McDonnell Douglas Aerospace St. Louis, MO
                       Flight Simulation Laboratory
                       email: balloni++at++fltsim.MDC.COM
                       phone: (314) 234-0944

/*
 * Channel draw callback function.
 */
static void
draw_callback (pfChannel *chan, void *data)
{
    pfVec3 * eye_point = (pfVec3 *) data;

    /* Clear the channel */
    pfClearChan (chan); /* e.g. - clear the viewport */

/*** pfuDrawSmokes (*mtail_eye); ***/
    pfuDrawSmokes (*eye_point);

    pfDraw(); /* Render the frame */
}


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:50:38 PDT

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