In order to speed up the repainting in my program i chatch the Clipping Region of the WM_PAINT message and, if present, i use the Microsoft extension function “GL_WIN_swap_hint” forcing the swapping area to the Paint Clipping Region. But if this extension is not supported where is the best choice ?
(currently i using:
glReadBuffer(GL_BACK);
glDrawBuffer(GL_FRONT);
//
::glCopyPixels(m_rcClipBox.left ,
m_rcClipBox.top ,
m_rcClipBox.Width() ,
m_rcClipBox.Height(),
GL_COLOR);
//
::glDrawBuffer(GL_BACK);
but this appear more slow than “GL_WIN_swap_hint” also for a lot o state save and restore).
Any suggestion ?. Thancks in advance and sorry for my poor english.