[cairo] OpenGL on Windows
rdelfiore at srlabs.it
Thu Sep 13 08:55:29 PDT 2012
> I compiled the 1.12.2 Cairo version under win32 using your advices and
> enabling the GL surfaces and the WGL functions.
> The build was apparently successfully but in my OpenGL program I was not
> able to display the Cairo surfaces, could you please show me your
> working example code.
> Thank you in advance,
> Roberto Delfiore
I refer to the following mail by Brent Fulgham Mon Jun 25 13:26:08 PDT 2012:
> Last night 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 diff to accomplish this. 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.
> To actually build the software, you need the "OpenGL Registry"
> versions of wglext.h and glext.h, which do not ship with Windows.
> 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.patch
> Type: application/octet-stream
> Size: 9346 bytes
> Desc: not available
> URL: <http://lists.cairographics.org/archives/cairo/attachments/20120625/659b1ce4/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo