You can use all functions of GL and GLU on SDL by using LibOSMesa. Here is an example with the code at the bottom of this link:
http://sdl.5483.n7.nabble.com/Conversion-of-an-Off-Screen-Context-of-Me ...