SDL OpenGL and SDL_image

Hi all…

I am making a game with SDL and openGL, and I’d like to have a menu
displayed when I press escape.
I downloaded SDL_image and SDL_ttf… and after quite long hours, I
managed to have an image displayed and some text changing color when I
press up or down
To do this, I had to call several time SDL_SetVideoMode()
(once for OpenGL, and once for the image display)
but when I want to go back to the game, I call a third time
SDL_SetVideoMode() with SDL_OPENGL and I get a blue window with nothing
drawn in it…

Can anybody help me?

Kek

To do this, I had to call several time SDL_SetVideoMode() (once for
OpenGL, and once for the image display)

Don’t do that; just use OpenGL to display the image!

If you’re concerned about Voodoo 3 support then you’ll have to split
your image in 256x256 chunks, but that’s the only problem.On 06/05/2004, Kek le Rouge, you wrote:


Please remove “.ARGL.invalid” from my email when replying.
Incoming HTML mails are automatically deleted.