Re: subwindow-less Gtk+ and offscreen windows
- From: "Lieven van der Heide" <lievenvanderheide gmail com>
- To: "Cody Russell" <bratsche gnome org>
- Cc: "gtk-devel-list gnome org" <gtk-devel-list gnome org>, Alexander Larsson <alexl redhat com>
- Subject: Re: subwindow-less Gtk+ and offscreen windows
- Date: Mon, 4 Aug 2008 23:57:00 +0200
I don't think that will work, since the user of the gl widget may want
to change the viewport as well, and the coordinates in glViewport are
always absolute, not relative to the current one.
But anyway, would it really be a problem to just have an X window,
only for widgets that really need it, and let normal GTK widgets,
like text fields and event boxes do their own clipping?
I do agree with Alexander that it would make things a lot more
flexible. I only wouldn't know if it's possible without braking
API/ABI
On Mon, Aug 4, 2008 at 11:33 PM, Cody Russell <bratsche gnome org> wrote:
> On Sat, 2008-08-02 at 21:35 +0200, Alexander Larsson wrote:
>> * Some operations require an X window id, for example:
>> + glXMakeCurrent()
>> so that you can draw into a window with opengl.
>> You can still draw to the toplevel window, but you can't
>> have GdkOffscreenWindow automatically clip the opengl drawing
>> calls (i think).
>
> Would it work if there were a new GL widget that took care of
> glXMakeCurrent() using the toplevel X window and did glViewport()
> internally using the widget's coordinates or something?
>
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]