Ron Peterson <[EMAIL PROTECTED]> writes:
> Now I try to switch my display between the two frames I've created
> really fast so I can give myself an epileptic seizure. No go. I can
> tell that the frames were created o.k., because if I run the code below
> the frames switch just fine when I hit the 'a' key. But when I run the
> 'for' loop that I commented out, nothing.
>
> Hmmm, maybe I actually had a siezure, and that's why I didn't notice
> anything...
>
> This is in X...
>
> ???
>
> while(1) {
> c = ggiGetc( vis );
> switch( c ) {
> case 'a':
> z = ((z - 2) * -1) + 1;
> cerr << "Frame: " << z << endl;
> ggiSetDisplayFrame( vis, z % 2 );
> // for( z = 0; z < 10000; z++ ) {
> // ggiSetDisplayFrame( vis, z % 2 );
>
> ...
Did you remember to call ggiFlush() after each ggiSetDisplayFrame() ?
//Marcus
--
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan
Royal Institute of Technology | Phone: +46 707 295404
Stockholm, Sweden | E-Mail: [EMAIL PROTECTED]