[XForms] Patch: GLCanvas context sharing support.

Angus Leeming angus.leeming at btopenworld.com
Fri May 14 17:23:22 EDT 2004


On Friday 14 May 2004 8:31 pm, jason cipriani wrote:
> Angus wrote:
> > #ifdef FORM_GLCANVAS_H
> > #include FORM_GLCANVAS_H
> > #endif
> >
> > where FORM_GLCANVAS_H is defined either in your <config.h> file
> > for the project or is passed via a -D flag on the compiler
> > command.
>
> Which is a much better way to do it, and I think that forms.h
> should have that in it in the next release.

Ok, Jason.

I've just committed the attached patch. You'll need to alter your 
project code so that a config.h file contains the magical

#define GLCANVAS_H_LOCATION <X11/glcanvas.h>

or alternatively pass the macro to your compiler directly.

Angus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: canvas.diff
Type: text/x-diff
Size: 1383 bytes
Desc: not available
Url : attachments/20040514/7a28d034/attachment-0010.bin 


More information about the Xforms mailing list