Re: [GtkGLExt] Multiple view problem



Hi,

  I've found the problem already. I was missing the gldrawable->gl_begin(get_gl_context()) in the expose event handler! A copy and paste problem, as i have verified the gears.cc example i used as reference and it is correct there.

  Thanks.

j.

2006/5/31, Timothy M. Shead <tshead k-3d com>:
On Tue, 2006-05-30 at 14:07 +0200, Jordi Rovira wrote:
> Hi all,
>
>   First of all thanks to the original developer and current
> maintainers of this project. It is really helpful.
>
>   And now the problem: I have multiple GL widgets derived from
> Gtk::GL::DrawingArea and added into a Paned hierarchy that can resize
> them. See the attached image. The user interface is dynamic: the views
> can be split and merged like in Blender. My problem is that only one
> of the views works, and the funny thing is that it depends on how you
> resize the main window: if i enlarge it to the left, the right GL
> widget works, if i shrink it the right, the one in the left works.
>
>   It might be somethin like the last one receiving the resize event is
> the one that keeps working. The other one doesn react to events or
> refresh (it is usually black, not like in the image).

I would throw some printf statements into your handlers and see whether
the configure and expose events are being received the way you think.
This may be a subtlety of the way the Gtk::Paned widget works, you may
need to experiment with the parameters to the pack1() and pack2()
methods.

Cheers,
Tim


_______________________________________________
gtkglext-list mailing list
gtkglext-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkglext-list



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