A question about screen flash
I currently using openl with motif.When drawing my image,it flash hard.Is there any ideas that not direct drawing the image to the screen,but to the buffer,and then,afeter drawing,copy it to the screen?
Double buffer may do this,but how to deal with no_opengl parts of the image?Can they been drawn to the back buffer too (they are drawn by motif and xt)?
Or draw the image to a glPixmap?How to do it and how to copy it to the screen-render?
Thanks a lot.Your code is welcome.
Re: A question about screen flash
By all means, use the back buffer to draw the OpenGL - I always use double buffering, even when I'm not animating. I'm not sure what you mean by the stuff drawn by motif and xt - are you talking about widgets, or actual drawing commands? If it's just widgets, then no problem - draw the GL into the back buffer and swap the buffers - it won't have any effect on the widgets. If not, draw the GL stuff, swap the buffers, then draw the Motif/Xt stuff.