jean-bobby
05-10-2004, 07:34 AM
Hello,
I make a 2D real-time application which display what I named layers. I have layers that are static (drawn once), dynamic layers that are drawn every time and dynamic layers that are drawn if an observed data has changed.
What I want to do is not to redraw every time my dynamic layers. I would like to draw them once in a buffer and then blit the buffer to the frame buffer every ticks.
I use glut and I found these functions : glutEstablishOverlay, glutUseLayer, glutShowOverlay , etc. Should I use these functions for my staff? It seems that with these functions, there just one overlay plane. It is right or can I use several buffers and then blit them? Will this technique be more efficient than display list?
Are there a mean to do what I want using only OpenGL (not glut and any other windowing system)?
thanks in advance
I make a 2D real-time application which display what I named layers. I have layers that are static (drawn once), dynamic layers that are drawn every time and dynamic layers that are drawn if an observed data has changed.
What I want to do is not to redraw every time my dynamic layers. I would like to draw them once in a buffer and then blit the buffer to the frame buffer every ticks.
I use glut and I found these functions : glutEstablishOverlay, glutUseLayer, glutShowOverlay , etc. Should I use these functions for my staff? It seems that with these functions, there just one overlay plane. It is right or can I use several buffers and then blit them? Will this technique be more efficient than display list?
Are there a mean to do what I want using only OpenGL (not glut and any other windowing system)?
thanks in advance