integrate opengl with sdl