[SDL] 2D API evolution (SDL 1.3/2.0)

Torsten Giebl wizard at syntheticsw.com
Sun Aug 27 13:36:35 PDT 2006


Hello !


> I dunno'... Ok performance in 3D games, considering the feature set
> and output quality, but unless there are shortcuts triggered by simpler
> transformations (for which I see no reason, considering it's really meant
> for 3D), I don't see how this could ever come close to the frame rates you
> get with the SDL 1.2 software blitters.

Do you want to have basic 2D GDI like or do
you want to have HW Surfaces and that things ?

Two ways :

1. With a compat. header it maybe no problem
to compile an executable with SDL 1.2 and 1.3.

2. The SDL 1.2 2D drivers could be added to SDL 1.3.
As every 3D code naturally has to check if the spec.
3D API OGL or D3D is available.

> Yeah... So, I suppose some kind of well defined way of plugging
> extensions in without messing up SDL rendering would be a sensible way of
> doing it. (Unlike glSDL, where you're not really supposed to mess with the
> OpenGL state while using glSDL.)

That was my hope that SDL supports a transparent way of rendering.

SDL inits 3D. In my mainloop
I do all my 3D calls and as a last call before SDL_Flip
i call for example SDL_Do2D or whatever, it blits the 2D stuff.


CU





More information about the SDL mailing list