[cairo] OpenGL on Windows

Brent Fulgham bfulgham at gmail.com
Sun Jun 24 20:27:56 PDT 2012

Tonight I was able to get an OpenGL-based Cairo test application to build and run under Windows using the 1.12.2 source base.

Attached is the rather large diff to accomplish this.  The majority of the diff consists of the addition of a new "src/win32/GL" directory containing the OpenGL Registry versions of wglext.h and glext.h, which do not ship with Windows. I have generated this change as its own patch (wgl_updates_GLext.patch.zip).

The smaller patch (wgl_updates.patch) contains the actual Cairo source changes.

I found that the default function pointer declarations did not work with the Windows GL implementation because of differences in calling conventions.  I'm not sure if the approach I took to add the declarations is the right one, and was hoping someone could review the change and let me know.

As I write this, I realize that I forgot to update the Makefile to include the GL and WGL source files; I will follow up with this missing piece, once I hear back on the other changes.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: wgl_updates_GLext.patch.zip
Type: application/zip
Size: 96738 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120625/349e7d32/attachment.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wgl_updates.patch
Type: application/octet-stream
Size: 9347 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120625/349e7d32/attachment.obj>

More information about the cairo mailing list