Hi. I just started using ggi about a day or two ago, so I'm sure I'm
asking a tired old question...
Just to see if I could get something working, I wrote a simple ggi
program that fills two frames with random black and white pixels. Seems
to work just fine.
Then I go into a little loop to practice capturing keyboard input.
Happy, happy.
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 );
...