Re: [GtkGLExt] [Gtk-osx-users] OS X Quartz developers Call to Arms
- From: Jacob Juul Kolding <jacob juvul com>
- To: Shawn Bakhtiar <shashaness hotmail com>
- Cc: gtkglext-list gnome org, GTK+-2 OSX Users <gtk-osx-users lists sourceforge net>
- Subject: Re: [GtkGLExt] [Gtk-osx-users] OS X Quartz developers Call to Arms
- Date: Wed, 25 Nov 2009 19:35:47 +0100
On Nov 23, 2009, at 5:35 PM, Shawn Bakhtiar wrote: Cool... did not even know there was a list for gtkglext.
I actually have some need of this. Just don't have time to work it, not sure if I have the know how either.. I am swamped with other work.
I myself do not have a good grasp of the Next Step Windowing system, but it looks like the implementation uses the NSView (check in gdkglwindow-quartz.h) instead of the NSOpenGLView, which means (given the dates on the patch) that some of this needs to be changed before it will work.
I bet you if you just change these lines to use the new NSOpenGLView it may indeed work
gdk/quartz/gdkglcontext-quartz.c:294: NSView *quartzView;
gdk/quartz/gdkglcontext-quartz.c:325: name: NSViewFrameDidChangeNotification
gdk/quartz/gdkglwindow-quartz.c:127: NSView *quartzView;
gdk/quartz/gdkglwindow-quartz.c:184: NSView *view = GDK_GL_WINDOW_IMPL_QUARTZ (draw)->quartzView;
gdk/quartz/gdkglwindow-quartz.h:23: NSView *quartzView;
I've tried changing to NSOpenGLView, but it doesn't seem to have any effect. My app behaves the same way after re-linking and grep'ing the lib still shows only NSView and NSOpenGLContext. (this is after a completely clean patch/build/install) Maybe it has something to do with gtkglext compiling against SDK 10.5?
Regards Jacob Kolding
From: jacob juvul comDate: Sun, 22 Nov 2009 11:49:44 +0100 To: braden endoframe comCC: gtk-devel-list gnome org; gtkglext-list gnome org; gtk-osx-users lists sourceforge netSubject: Re: [Gtk-osx-users] [GtkGLExt] OS X Quartz developers Call to Arms On Nov 21, 2009, at 6:30 AM, Braden McDaniel wrote: On Sat, 2009-11-21 at 02:33 +0100, Jack Skellington wrote: Hi all!
I'm currently working on porting a commercial Gtk+ OpenGL App to Snow
Leopard using the actively developed and maintained Gtk+ OS X Quartz
backend. My last problem now is that GtkGlExt only works with X11. I'm
not familiar with the Low Level OS X API's, so I'd properly wouldn't
be able to write the backend myself but I think it would be awesome if
someone here could help with the native OS X backend, getting closer
to a fully supported native Gtk+ :)
This patch is probably a good starting point: https://sourceforge.net/tracker/?func=detail&aid=2750584&group_id=54333&atid=473436I'll try to get back to reviewing this soon; though it might have to wait until I get my KVM back from RMA. Do let me know how it goes for you.
I managed to apply the patch and compile both GtkGLExt and my app, but when I start my app the main windows is complete empty of any gtk widgets (white background everywhere), the only thing thats visible is the borders I draw in the opengl area, but when I move the mouse up the the invisible file menu I'm able to open other (non opengl) windows which works as expected??
Regards _______________________________________________ gtkglext-list mailing list gtkglext-list gnome orghttp://mail.gnome.org/mailman/listinfo/gtkglext-list
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]