On Fri, Apr 21, 2000 at 03:26:38PM +0200, Niklas H�glund wrote:
>
> for(;;) {
> draw();
> static bool first=true;
> glFlush();
> glFinish();
> ggiFlush(vis);
> ggiSetOrigin(vis, first ? 0 : wid,0);
> reshape(first ? wid : 0,0,wid,hei);
> glClear(GL_DEPTH_BUFFER_BIT);
> ggiDrawBox(vis, first ? wid : 0,0,wid,hei);
> first=!first;
> }
Note that your bool object 'first' is destroyed and recreated in
every iteration of the for loop. Thus, it will always have a
value of true in the ggiSetOrigin line. Maybe it helps to move the
definition of first out of the for loop.
Dirk
--
Dirk Lattermann | Information is not knowledge | Beauty is not love
[EMAIL PROTECTED] | Knowledge is not wisdom | Love is not music
Bonn, Germany | Wisdom is not truth | Music is THE BEST
| Truth is not beauty | (Frank Zappa)