[SDL] Kill Window without SDL_Quit()
Micah Brening
micah.brening at gmail.com
Wed Feb 20 21:05:13 PST 2008
Bob Pendleton <bob <at> pendleton.com> writes:
> How many nanoseconds are you saving by doing that? Is the CPU time saved by
this worth anyone enough to make this problem worth the timeneeded to solve
it?Seriously, just get the pointer again when you restart SDL. Or, if that just
isn't possible then waste a few bytes of memory and store the whole table, or
just the parts you need, and keep the copy around for as long as you need it.
> So the request: Kill SDL window without killing SDL. Is it possible? How is
it done? If it isn't possible... It'll be my request for SDL1.3/2.0
>
> Why? To save a handful of nanoseconds or a handful of bytes? Anyway, 1.3
supports multiple windows so the problem would be very different. Bob Pendleton
heh, actually, it isn't about saving time. It was a convieniance feature FLTK
offered I was hoping to take advantage of. I guess I could do what you said, it
just seems redundant to do.
1) initialize fltk window.
2) initialize sdl video data.
3) initialize drop down box with video data.
4) let user do whatever.
5) show sdl video
6) kill sdl video
My hopes were to then loop back to the fourth procedure, but if I have to go all
the way back to the second, then that is what I'll do.
I could store them too, true. And it would be less redundant.
It doesn't cause any issues to call SDL_Quit, and then reinitialize shortly
after, or after at all, right?
So, copy and store the data, and Init and Quit SDL as needed.
Thanks for the reply! I think I got what I needed.
More information about the SDL
mailing list