[SDL] SDL_ttf and hardware surfaces/double buffering?

Bob Pendleton bob at pendleton.com
Thu Mar 3 07:41:12 PST 2005


On Wed, 2005-03-02 at 03:10 +0000, Jesse Kvatek wrote:
> i'm trying to get some text to the screen and i can get the SDL_ttf example code 
> to work but not in double buffered mode.  does anyone know if it's supposed to 
> work in that mode as well?  if not, anyone have a fix/workaround/alternate 
> suggestion for simple text output to an opengl window?

SDL_ttf just generates surfaces with the right pixels in them. It has no
knowledge of the different video modes. Therefore it works just fine
with every type of SDL surface and in every mode. The hard part is that
you have to figure out how to get the surfaces that SDL_ttf generates
onto the surface that you are going to see. 

		Bob Pendleton

> 
> thanks!
> 
> 
> 
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
> 





More information about the SDL mailing list