Re: [GtkGLExt] queue_draw() from other window



Am Wed, 26 Oct 2005 16:55:11 +0200 schrieb Philipp Klaus Krause:

> Andreas Volz schrieb:
> > Hi,
> > 
> > if I call queue_draw() from a window other than my main window with
> > the gtkglext, nothing get updated in the opengl widget. What should
> > I do to update gtkglext in another window?
> 
> I use the following to schedule regular updates. A similar solution
> could solve your problem.
> 
> In the OpenGL widget I have
> bool Bufferview::update(void)
> {
> 	queue_draw();
> 	return(true);
> }
> 
> then I use a SigC signal to call it:
> updatecon = Glib::signal_timeout().connect(SigC::slot(*this,
> &Bufferview::update), unsigned((1.0f / updates->get_value()) *
> 1000.0f));

Hm, a periodic update is a new idea. I call queue_draw() only if I
change something. what time value did you use? If I update to often CPU
load goes high and otherwise the display update is slow.

regards
Andreas



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]