[SDL] 2D above OpenGL graphics

Nuno Santos developer at imaginando.net
Mon Nov 20 00:34:15 PST 2006


Hi,

Yes, i was meaning that! I see!

My first goal in that direction was to include some text above my 
scenes! Do you recommend me the same strategy?

Cheers,

Nuno


E. Wing escreveu:
> If you mean using the SDL 2D APIs like SDL_BlitSurface on top of
> OpenGL, then you probably don't want to do this. There is a deprecated
> option called SDL_OPENGLBLIT which allowed this, but there are a lot
> of fundamental problems with this, so don't use it.
>
> If you use OpenGL, then everything should be OpenGL including your 2D
> stuff.  One thing you could try if it makes sense is to draw SDL 2D
> things into memory/textures, and draw the textures in OpenGL scene.
>
> -Eric
>
>
>   
>> Date: Sun, 19 Nov 2006 01:15:37 +0000
>> From: Nuno Santos <developer at imaginando.net>
>> Hi,
>>
>> I've very new to SDL. I'm working on a SDL OpenGL based application.
>> I would love to have 2D things provided by SDL above the OpenGL, as a
>> upper layer.
>>
>> It is possible to do this?
>>
>> Is there any tutorial on this?
>>
>> Many thx,
>>
>> Best regards,
>>
>> Nuno Santos
>>
>>     
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>   





More information about the SDL mailing list