How can i use a webcam with opengl

If anybody knows, please help me.
I need to “take pictures”, and save then in JPEG format, with a webcam.


opengl is a device independant graphics library … take a look at the windows libraries instead.

OpenGL could be used to bring pixels from the webcam to the screen but NOT control it.