SDL_Surface and OpenGL

Can I safely assume that 2D SDL functions will work correctly with
SDL_OPENGL if I stay within software surfaces and don’t attempt to
directly or indirectly access the video surface? In particular, I
want to use ‘SDL_LoadBMP’ and convert the result manually to an OpenGL
texture.–
Rainer Deyke | root at rainerdeyke.com | http://rainerdeyke.com

Rainer,

That’s been my (limited) experience so far. I have done this only with
SDL_SWSURFACE types, not sure about SDL_HWSURFACE types.

Mike.> ----- Original Message -----

From: root@rainerdeyke.com (Rainer Deyke)
Newsgroups: loki.open-source.sdl
To:
Sent: Tuesday, September 24, 2002 10:03 PM
Subject: [SDL] SDL_Surface and OpenGL

Can I safely assume that 2D SDL functions will work correctly with
SDL_OPENGL if I stay within software surfaces and don’t attempt to
directly or indirectly access the video surface? In particular, I
want to use ‘SDL_LoadBMP’ and convert the result manually to an OpenGL
texture.


Rainer Deyke | root at rainerdeyke.com | http://rainerdeyke.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

That’s been my (limited) experience so far. I have done this only with
SDL_SWSURFACE types, not sure about SDL_HWSURFACE types.

A hardwaresurface would not make sense here, as OpenGl handles the
textures and you don’t need to speed up anything there.
You can use SDL_Surfaces as base for your OpenGl textures and do all
your usual stuff there (I do this, too) - except blitting directly to
the screen of course.

MfG Arne