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 2 of 8 Topic 4879 of 5017
Post > Topic >>

Re: glutPostRedisplay() not forcing redisplay

by "jbwest" <jbwest@[EMAIL PROTECTED] > Aug 21, 2008 at 09:03 AM

"Flark" <flarkino@[EMAIL PROTECTED]
> wrote in message 
news:2eeb07cf-f47d-4217-9779-8a505bfad954@[EMAIL PROTECTED]
> Hi,
>
> Is there a way to ensure that a redisplay occurs?
>
> Here's an example situation: I let the user change the
> background color. A pop up window appears and
> the user selects the new color. The window disappears
> and then I change the background color and call
> glutPostRedisplay(). Unfortunately, the background
> color doesn't change right away.
>
> It only occurs (I don't know why) when the user
> clicks in the OpenGL window.
>
> Thanks.


Sounds like you are forgetting a flush or swapbuffers in your display 
routine. Print out where you do a postredisplay and then also in your 
display routine to see if it really is getting called but you've got a
logic 
problem.

jbw
 




 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 5:04:55 CST 2008.