Talk About Network

Google





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

Re: glutPostRedisplay() not forcing redisplay

by Alessandro <alessandro.denardi@[EMAIL PROTECTED] > Sep 11, 2008 at 03:57 PM

Hi,
I'm new to OpenGL. I also have the problem for which the screen get
updated only when the mouse enters the window (although I'm calling
glutPostRedisplay).
I'm swapping the buffers and also have tried to flush, but nothing
changed. What am I missing?
Thanks in advance.

Alessandro


On 22 ago, 02:02, "jbwest" <jbw...@[EMAIL PROTECTED]
> wrote:
> "Flark" <flark...@[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
localhost-V2008-12-19 Fri Jan 9 15:15:09 PST 2009.