Various C++ functions that I find useful for SDL game development