Re: [GtkGLExt] queue_draw() from other window
- From: Philipp Klaus Krause <pkk spth de>
- To: Andreas Volz <lists brachttal net>
- Cc: gtkglext-list gnome org
- Subject: Re: [GtkGLExt] queue_draw() from other window
- Date: Wed, 26 Oct 2005 16:55:11 +0200
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));
Philipp
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]