reorganized some stuff in graphics.cpp to make it more clear. button works with SFGUI