replacing freeglut with sdl to load textures