[SDL] SDL surface -> OpenGL texture
David Olofson
david.olofson at reologica.se
Mon Mar 5 12:52:37 PST 2001
On Monday 05 March 2001 19:40, Mattias Engdegård wrote:
> >Actually, the whole copying isn't really necessary, SDL_ConvertSurface
> >can do the job for you.
>
> right, and that code is b0rken wrt endianness in 24bpp anyway
>
> you might want to flip it upside down though, but that can probably
> be accomplished just as well by rendering it upside down in GL
That seems to work, indeed, but I don't feel good about doing it that way...
Is it really *guaranteed* to work fine on all 3D cards, without artifacts or
slowdowns? (Can't see why it wouldn't be safe, but there is some strange
hardware out there...)
//David
.- 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