SDL Surface Access while using OpenGL mode

Is it possible to do a SDL screen blit while in opengl mode? I tried using the examples but there was no UpdateRectangle function defined (set to NULL) and also the clip rectangle for the base video surface was set to 0,0,0,0. When I tried to change the clip rectangle to something meaningful the blit crashed.

This question has probably been asked before but I didn’t see a search feature in the archive. If there is one let me know and I won’t bother everyone.

Thanks,

First of all: We’ve been discussing this over and over agian, and
virtually the same question has been asked several times during the last
few days alone. heh

Now, the reason why the screen surface info appears to be nonsensical is
that there is no screen surface from SDL’s POV. You can use
SDL_OPENGLBLIT instead of SDL_OPENGL to get one, but let’s just pull the
short version: DON’T. :slight_smile:

Instead, send the images to OpenGL and render them as normal textures.
Faster, better, cleaner and just as portable. (Well, I assume you need
working texture downloading code anyway, as you’re using OpenGL. :slight_smile:

//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 -'On Wednesday 17 October 2001 19:24, Rob Hafey wrote:

Is it possible to do a SDL screen blit while in opengl mode? I tried
using the examples but there was no UpdateRectangle function defined
(set to NULL) and also the clip rectangle for the base video surface
was set to 0,0,0,0. When I tried to change the clip rectangle to
something meaningful the blit crashed.

This question has probably been asked before but I didn’t see a search
feature in the archive. If there is one let me know and I won’t bother
everyone.

Is it possible to do a SDL screen blit while in opengl mode? I tried using the examples but there was no UpdateRectangle function defined (set to NULL) and also the clip rectangle for the base video surface was set to 0,0,0,0. When I tried to change the clip rectangle to something meaningful the blit crashed.

This question has probably been asked before but I didn’t see a search feature in the archive. If there is one let me know and I won’t bother everyone.

Thanks,

http://www.libsdl.org/pipermail/sdl/2001-October/039391.htmlOn Wed, 17 Oct 2001, Rob Hafey wrote: