Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: A question about screen flash

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2001

    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.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Nov 2000
    State College, PA

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts