Hello everyone.
im capturing video from a webcam using OpenCV and then im rendering each frame using OpenGL.
im using glDrawPixels() for that.
glDrawPixels(640, 480, GL_RGB, GL_UNSIGNED_BYTE, image_data);
But im having a small problem.
The frame i obtain using OpenCV has BGR format. But in glDrawPixels, i could not find that format. So, colors are not displayed properly.
Is there any way i can solve it? Can anyone please help?
Thanks.