I’m writing a program based on VFW to get pics from a webcam. This pics are on DIB format, and stored on a buffer.
Now I want to use OpenGL (through glDrawPixels for instance) to display (I’m using the Qt GUI, and for this I think OpenGL is the best for displaying video).
The thing is that I don’t know how to do it. Could anybody give me a hand?
glDrawPixels is pretty simple to use, so I assume you want to know how to create OpenGL context and use it for drawing.
I would start from google’ing for some component. I’m using wxWidgets and there is a GL canvas component. I’m pretty sure someone did something similar for Qt.