[SDL] Separating Window Management from Display Surfaces
wizard at syntheticsw.com
Sun Jun 15 07:38:17 PDT 2008
But what is the representation
of a DisplaySurface on a system like for example Win32 or
If you want to have a DisplaySurface you can just create an Empty
Surface and blit everything to it. There would be no difference
between a DisplaySurface and a normal Surface.
When integrating SDL into GTK or other Toolkits,
you have two ways :
Blit everything into a surface and then
use a function from the Toolkit like draw_image (buffer,x,y)
or you can let the toolkit create a borderless integrated window
somehow and use that.
When the data is not updated 50times a second or so,
the first method works great.
More information about the SDL