Video format and opengl windows

Is anyone there who can tell me if and how can i play a video file (any format) in an opengl window (fullscreen) with Visual C++.
Something like an intro or a trailer made with Lightwave or 3D Studio.


You can use VFW.h (Video For Windows) to read each frame of an AVI file (Look at AVIFile Functions in MSDN) and render these frames as textures on a quad…



Eric, if it is not too complicated, can you please show some code? I don’t have the MSDN