[XForms] Patch: Context Sharing + fdesign (real thing)

Angus Leeming angus.leeming at btopenworld.com
Mon May 17 04:42:47 EDT 2004


On Sunday 16 May 2004 10:57 pm, jason cipriani wrote:
> Ok, here it is. Tested on Mac OS X and Linux-testing coming on
> Monday. It's a rather large patch. The attached file contains
> patch.diff, sglcanvas.html (which somewhat resembles
> documentation), and a test program (which isn't worked into the
> demo folder, and the Makefile might require some tweaking to
> compile). This patch adds support for GLX context sharing in gl
> canvases, and also gives fdesign the ability to set up canvas
> sharing via the Spec tab in the glcanvas attribute editor.

Woooo!

Jason, I think that we should hold off on this until after XForms 1.1 
is out of the door. It's big, big, big and we're very close to a 
release.

However, I think we should resolve the GLCANVAS_H problem now.

I think that header files should be self-contained. Ie
	#include "foo.h"
	int main() { return 0; }
should compile. If it doesn't, then that's a problem.

As you say, glcanvas.h contains code like:
	FL_EXPORT GLXContext fl_get_glcanvas_context(FL_OBJECT *ob);
As we can't forward-declare GLXContext, the only permissible solution 
is to #include <GL/glx.h> in glcanvas.h.

Thereafter, things should "just work" with my GLCANVAS_H_LOCATION 
patch.

Comments?
Angus





More information about the Xforms mailing list