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

Jean-Marc Lasgouttes Jean-Marc.Lasgouttes at inria.fr
Mon May 17 05:34:02 EDT 2004


>>>>> "Angus" == Angus Leeming <angus.leeming at btopenworld.com> writes:

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

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

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

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

Angus, I tried to read the thread about this header problem, but I do
not really understand what the issue is. Could you explain it to me?

JMarc



More information about the Xforms mailing list