[SDL] OpenGL + SDL_BlitSurface()

David Olofson david.olofson at reologica.se
Thu Oct 25 14:30:01 PDT 2001


Here we go again...

(*Still* not in the FAQ? I could write an entry, but not until Kobo 
Deluxe 0.3 is released.)


'On Thursday 25 October 2001 22:09, S?awu? wrote:
> Hi!
> I want to do 2D frame (about 30 px wide) around 3D openGL view
> but I can't use both (OpenGL and SDL_BlitSurface()) at once :-(

Actually, you can (using the SDL_OPENGLBLIT flag), but you *definitely* 
shouldn't.


> When I comment one of them is it works ok - separatly OpenGL
> and separatly SDL_BlitSurface() works fine.
> Can You help me? Some short example?

Descriptions and example code has been posted to this list countless 
times, and several times just the last few weeks.

In short: Use glOrtho() and the usual OpenGL texture stuff.


//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.linuxdj.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`-------------------------------------> http://olofson.net -'




More information about the SDL mailing list