[SDL] SDL, OpenGL, and Drawing only part of the screen

Trevor Agnitti trevor at lackeyccg.com
Sun Oct 8 07:27:56 PDT 2006


Fellow SDL enthusiasts,
I have a program using SDL and OpenGL, and whenever I need to refresh  
the screen vI call SDL_GL_SwapBuffers();.  But  on slower computers,  
it takes a while to render the whole screen, and it therefore looks  
choppy.  Is there a way to only refresh part of the screen, for  
example like the part that has changed?

I was thinking about using glViewport to only draw to part of the  
screen but I still have to use SDL_GL_SwapBuffers();. to make the  
changes visible.

Is there a way I can only refresh part of the screen?

-Trevor
http://www.lackeyccg.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20061008/d7b18cad/attachment.html 


More information about the SDL mailing list