In this tutorial we see how we can acces to OpenCV functions and use the images we process with it to use in our OpenGL program.
To use an OpenCV image (IplImage) and use it as an OpenGL textures we mus use this function.
This function only get data image and store it as an image Texture.
We can get a camera image and use it to texture aplane, to do it we need a function to update the texture data, this we can do in OpenGL main loop or in glutiddleFunc as show