[SDL] SDL 1.3 - SDL_Texture or SDL_Surface?

Rainer Deyke rainerd at eldwood.com
Thu Aug 2 10:22:48 PDT 2007


Ryan C. Gordon wrote:
> So for SDL 1.3, would an equivalent SDL_DIRECT3D flag to match 
> SDL_OPENGL be useful? You're definitely going to end up with an #ifdef 
> WINDOWS somewhere in your app if you use it, of course, but if you need 
> to get at Direct3D functionality for all the reasons that game 
> developers already write multiple renderer codepaths, it might be useful 
> (and save you a lot of the D3D boiler plate initialization code).

Although better SDL/Direct3D integration would be helpful, I'm not sure 
how much SDL can be expected to help - especially when you consider that 
each version of Direct3D is completely different from every other 
version.  Is it really reasonable for SDL to provide me with the 
Direct3D version of my choice?

Right now I just use SDL to open a window and initialize Direct3D or 
that window.  This wastes one back buffer worth of memory.  It would be 
nice to have official support for this method, and it would be nice not 
to waste an extra back buffer worth of memory.  I don't think I can 
reasonably expect more than that.


-- 
Rainer Deyke - rainerd at eldwood.com



More information about the SDL mailing list