oop-izing GL+SDL 1.2