Results 1 to 6 of 6

Thread: Problem from OpenGL to QT OpenGL

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    May 2009
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Problem from OpenGL to QT OpenGL

    allrite guys i am sorry for bad description of my problem...but here is what i am saying...

    Qt Code:
    1. void AntiAliasWidget::run(int value)
    2. {
    3. //If animation is on (not hit F3 yet), then keep adding height
    4. // to make effect of sun raising, if over 4.8, then go down to 2.7
    5. if ((sunDirection == 1) & (animationEnable)) {
    6. _height += 0.01f;
    7. if (_height >= 4.8) sunDirection = -1;
    8. } else if ((sunDirection == -1) & (animationEnable)) {
    9. _height -= 0.01f;
    10. if (_height <= 2.7f) sunDirection = 1;
    11. }
    12. //glutPostRedisplay(); //Update the display
    13. updateGL();
    14. //glutTimerFunc(value, run, 0); //Call it again in 25 ms
    15. }
    To copy to clipboard, switch view to plain text mode 

    the source code above have glutTimerFunc function but i dont know how to translate that particular line to QT ... so can someone please tell me how to do it

    i hope this will be clear explanation from my part..thank you
    Last edited by nuts_fever_007; 15th May 2009 at 06:06.

Similar Threads

  1. OpenGL problem on msvc2008 in release
    By redoctober0 in forum Qt Programming
    Replies: 3
    Last Post: 6th February 2009, 17:59
  2. Qt Embedded + OpenGL problem
    By EeroS in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 7th October 2008, 14:32
  3. problem in rendering opengl on QGraphicsView
    By Sandip in forum Qt Programming
    Replies: 17
    Last Post: 15th April 2008, 08:27
  4. Problem when mixing openGL and QPainter
    By sanjayshelke in forum Qt Programming
    Replies: 9
    Last Post: 21st March 2008, 12:49
  5. problem with opengl, zooming, drawpixels, and origin
    By ntp in forum General Programming
    Replies: 0
    Last Post: 22nd February 2008, 21:48

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.