I have to create a cross-platform (Windows, OS X, Linux) OpenGL application and I have been looking for a good 2D graphics library without lot of fancy stuff (so SDL, QT, Juce are out of my business). I found Cairo and it seems to be great for my scope.
Since now I used to create an image context and then swap the surface on a texture in order to use Cairo with OpenGL, but I was wondering if there is a native and maybe faster way to do it. I read something about cairo-gl context, but I didn't understand if it is still in a beta stage, it seems not officially documented and anyway there is few documentation about it.
Furthermore I wasn't able to compile Cairo with the GL support (using --enable-gl
option and making some hacks to fix some issues to the configure script) on OS X 10.10, so I cannot even test the few basic examples available on OS X.
Have you ever used it? Do you know where I can find some updated documentation? Or maybe do you know which is the best way (I mean: supported, portable and fast) to use Cairo with OpenGL?