[SDL] 2D above OpenGL graphics

E. Wing ewmailing at gmail.com
Sun Nov 19 23:47:07 PST 2006


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
>




More information about the SDL mailing list