Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: movie player control

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2005
    Posts
    4

    movie player control

    I have written a openGL program can play yuv file. But I do not know how to control the frame rate. I tried sleep(), and while loop, but in this time, the glutKeyboardFunc() function doesnt work, which means I can not control my program. Does anyone can help me out? Thank you so much!!!
    And does glut provide buttons? I want to build a player interface like media player classic. Any open source code movie player using openGL?
    Thanks!

  2. #2
    Junior Member Regular Contributor
    Join Date
    Oct 2004
    Posts
    153

    Re: movie player control

    And does glut provide buttons?
    what does this mean?

    i would not use a sleep or something like that. you could measure the fps and display the same image several times and update after a calculated time

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2005
    Posts
    26

    Re: movie player control

    I suppose you want to build a gui for your program. Glut is too minimalistic for this. The only thing it provides are popup menus. You could do the gui with GL itself or use a more powerful gui building tool.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •