[SDL] Kill Window without SDL_Quit()

Micah Brening micah.brening at gmail.com
Thu Feb 21 11:40:20 PST 2008


Bob Pendleton <bob <at> pendleton.com> writes:

> 

> Sorry, you hit a bit of a hot button. I teach programming and I have been a
programmer for 35 years. I can't tell you the number of times I have seen
programmers, including myself, tie them selves up in knots trying to avoid doing
something twice in piece of code. It seems to be an instinct in people who
become programmers to want to avoid doing anything twice. 

I have to admit, that is what what happening.  I was juggling function calls to
avoid calling somethings more than once.  But after doing some opengl, I should
have realized that sometimes you have to call functions more than once to get
the correct results.

> No issue at all.  

I should have known that SDL would have been set up so that it knows when it is
actually initialized and when it isn't. That was my error.

I set up the code to copy the information, and as soon as the user is done with
the video, it kills SDL.  So your information worked perfectly.

Thanks again, and sorry for the stupid question.



More information about the SDL mailing list