small trick for exit GLUT and c++

the glut no have event to destroy window and this is a big bug, the simply solution is the one static class

when you call a exit function this function destroy first the static members of app, in the destructor of static class destroy all pointers and other objects

only one question, in linux or mac the exit function is equal or change?

i am spanish and my english is not very good