Do I need to free all my surfaces I create or does the SDL somehow keep
track of them? Does that include the window one (SDL_SetVideoMode)?
Must I use SDL_FreeSurface or can I just use delete in C++?
Joe Tennies
Do I need to free all my surfaces I create or does the SDL somehow keep
track of them? Does that include the window one (SDL_SetVideoMode)?
Must I use SDL_FreeSurface or can I just use delete in C++?
Joe Tennies
Do I need to free all my surfaces I create or does the SDL somehow keep
track of them? Does that include the window one (SDL_SetVideoMode)?
You need to free all your surfaces. This may change in the future,
but it’s always a good idea to free resources you allocate.
Must I use SDL_FreeSurface or can I just use delete in C++?
You must use SDL_FreeSurface.
See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
“Joe Tennies” wrote in message
news:NEBBJGLLFBOPDEHHPHOMMEDMCBAA.tennies at uwplatt.edu…
Do I need to free all my surfaces I create or does the SDL somehow keep
track of them?
The former.
Does that include the window one (SDL_SetVideoMode)?
No.
Must I use SDL_FreeSurface or can I just use delete in C++?
The former.–
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor