View Full Version : display video using openGL

01-28-2009, 12:49 AM
I am new to openGL, I want to create window under linux and read a video sample file, convert to RGB and display this sample on the window.

I had used glut..() functions and able to display the video.

My query is: Is it possbile to display video without using glut() functions. (especially glutMainLoop()).

Thanks & Regards

01-28-2009, 02:31 AM
Yes it is possible. But why ?
Using a glut timer you should be able to display the video with correct refresh rate.

EDIT: direct Xlib sample available on the twiki :

01-28-2009, 10:26 AM
Sure, Thanks. The problem that I am facing is that I have two different threads (one for displaying video and one for updating the video content). Now, if I am using glutMainLoop(), it is not allowing the other thread to execute. So, if I try to render the video in real time, it is causing me problems. Has someone seen this kind of problem earlier