Re: OpenGL on Windows

Roberto Delfiore <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
> 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.
>
> Thanks,
>
> -Brent
> -------------- 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>

Roberto Delfiore

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.