Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > Re: glutPostRed...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 8 Topic 4879 of 5017
Post > Topic >>

Re: glutPostRedisplay() not forcing redisplay

by "jbwest" <jbwest@[EMAIL PROTECTED] > Aug 21, 2008 at 05:02 PM

"Flark" <flarkino@[EMAIL PROTECTED]
> wrote in message 
news:3373e0ad-ad76-4f63-88cb-c6c2c411b51b@[EMAIL PROTECTED]
>
> Incidentally what I am trying to do is
> cause a redisplay of a GLUI static text item
> from within a callback before returning to
> the GLUT event loop. I need to display
> some information, then do some work,
> then return to GLUI, preferably without
> switching to a multithreaded approach.
>

No can do. glutPostRedisplay just queues a redisplay for the glutMainLoop,

it doesn't immediately cause a redraw.

"glutPostRedisplay marks the normal plane of current window as needing to
be 
redisplayed. glutPostWindowRedisplay works the specified window as needing

to be redisplayed. After either call, the next iteration through 
glutMainLoop, the window's display callback will be called to redisplay
the 
window's normal plane."

You need to queue the redisplay, return to glut main loop, when the 
redisplay happens, then fire the work proc. This is the classic "progress 
meter" mistake.
 




 8 Posts in Topic:
glutPostRedisplay() not forcing redisplay
Flark <flarkino@[EMAIL  2008-08-21 07:55:51 
Re: glutPostRedisplay() not forcing redisplay
"jbwest" <jb  2008-08-21 09:03:49 
Re: glutPostRedisplay() not forcing redisplay
Flark <flarkino@[EMAIL  2008-08-21 10:24:44 
Re: glutPostRedisplay() not forcing redisplay
Flark <flarkino@[EMAIL  2008-08-21 10:55:01 
Re: glutPostRedisplay() not forcing redisplay
"NewsReader" &l  2008-08-21 20:56:12 
Re: glutPostRedisplay() not forcing redisplay
"jbwest" <jb  2008-08-21 17:02:59 
Re: glutPostRedisplay() not forcing redisplay
Alessandro <alessandro  2008-09-11 15:57:23 
Re: glutPostRedisplay() not forcing redisplay
Alessandro <alessandro  2008-09-11 17:41:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 6:47:55 CST 2008.