Calling SetVideoMode twice and surfaces

Calling SetVideoMode destroys any previously created surface? I would like
to have an initial video mode (windowed, to show an splash with a
progress bar while I load surfaces) and later change to a more resolution
mode.–
Roger D. Vargas | El sistema se apagara en 5 segundos.
ICQ: 117641572 | Salvese el que pueda!
Linux User: 180787 |

Calling SetVideoMode destroys any previously created surface? I would like
to have an initial video mode (windowed, to show an splash with a
progress bar while I load surfaces) and later change to a more resolution
mode.

Yes, calling SetVideoMode() will destroy your current rendering context and
create a new one. But this will not affect any data that you have loaded-
simply keep the image data in RAM and recreate your
surfaces/textures/displayLists after each call to SetVideoMode() and you’ll
be fine.

-Blake

----- Original Message -----
From: roger@eht.scu.tur.cu (Roger D. Vargas)
Sent: Wednesday, August 07, 2002 12:14 PM
Subject: [SDL] Calling SetVideoMode twice and surfaces