This is only just enough agl to get SDL working...