Tag Archives: OpenGL

Vector graphics rendering with cairo and openGL in Windows (VS project included)

Standard

OpenGL is not capable of rendering 2D vector graphics. Cairo can help in this situation. The basic working theory is outlined in cairo website. An example can be found in this post.  However, getting the code to work is not very straight forward, particularly with a Windows box. So I created this sample project with the code from the post mentioned above. Open the project file with VS 2013 (community edition is free), it should compile in both debug and release, it looks like this:

cairo_sample

checkout the source code for details.