[XForms] Shared GL contexts
Angus Leeming
angus.leeming at btopenworld.com
Thu May 27 18:13:56 EDT 2004
Jason,
attached is your shared GL context patch in a form ready for inclusion
in current XForms cvs. I've done little more than rename the files of
the demo as
demos/sgl.c
demos/fd/sgl_gui.fd
demos/fd/sgl_help.fd
demos/fd/sgl_sub.fd
with concommittant changes to the names of the FD_ structs. I've also
ensured that the demo will #include forms.h and glcanvas.h from the
tree rather than any already-installed versions.
To build, I ran:
$ ./autogen.sh
$ mkdir build && cd build
$ ../configure --enable-demos
$ make
I had a play with the demo. Very pretty ;-)
Unfortuanately, I managed to shut down X11 when I exited from the
demo. It doesn't do this everytime, but most definitely did do it
once. I'd been playing with the main window quite a lot and had
managed to 'turn off' the objects in the three left-most sub windows
on the top row. I'd popped up the sub window and read the data in
the help menu. I can't remember whether all three windows were open
when I hit the 'Exit' button on the main form. At that point X died.
I'll try and crash it again from within gdb, but this is just a heads
up.
Incidentally, does anyone know how I can pipe the output from gdb to a
file? I'm not going to get much useful info if I run gdb from an
xterm if I'm going to end up killing X...
Angus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shared_gl_canvas.diff.gz
Type: application/x-gzip
Size: 13332 bytes
Desc: not available
Url : attachments/20040527/f294d6bb/attachment-0010.gz
More information about the Xforms
mailing list