[SDL] Displaying SDL content in an existing Window...

David Olofson david.olofson at reologica.se
Thu Jul 26 07:24:01 PDT 2001


On Thursday 26 July 2001 15:13, Mattias Engdegård wrote:
> >> don't do this --- never create an SDL_Surface by other means than
> >> the SDL calls (SDL_CreateRGBSurface etc)
> >
> >Oh yes! :)
>
> you can write as much crap code for your own consumption as you like,
> but please don't pass it on to others
>
> >But of course it would be nice if SDL had the MakeSubSurface and
> >FreeSubSurface functions - then the "hack" could be maintained
> >along with SDL ;)

Well, it should probably be called SDL_CreateWindow() or something, and 
it should be ready for the advanced clipping that we might see in 1.3. 

Then again, this has nothing to do with hardware acceleration, so I guess 
there's...

> no chance of that

...being a part of the SDL core. Makes sense to me.

How about providing the "hooks" required to implement an add-on windowing 
library? (For 1.3 of course - without "advanced clipping", it's a kludge 
with limited usefullness IMHO...) Perhaps to early to tell if it'll "fit 
in", though.


//David Olofson --- Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> david at linuxdj.com -'




More information about the SDL mailing list