pfuGLX && iconic state

New Message Reply Date view Thread view Subject view Author view

Robert D. King (king++at++ait.nrl.navy.mil)
Tue, 17 Oct 1995 14:49:59 -0400 (EDT)


    In our application, we suspend portions of our cull and draw
processing depending on the state of a global flag. e.g.,

void CullFunc(pfChannel * chan, void *data)
{
    /* don't bother if we're suspended */
    if (ViewState->suspendFlag)
        return;

    PreCull(chan, data);
    pfCull();
    PostCull(chan, data);
}

void DrawFunc(pfChannel *chan, void *data)
{
    /* only bother with these if we're not suspended */
    if (!ViewState->suspendFlag) {
        PreDraw(chan, data);
        pfDraw();
    }
    PostDraw(chan, data); /* always process input */
}

THE QUESTION:
With respect to setting the state of our global flag,
in an application which uses pfuGLXWinopen (), is there a preferred
method to test whether the top level window has been iconified or not?

A code snippet would be appreciated.

Thanks in advance,

Rob


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:57 PDT

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