SDL and OpenGL template on C++