title: Can I use EGL in OSX?
body: <p>I am trying to use <a href="http://cairographics.org/" rel="noreferrer">Cairo</a> library in a C++ application utilizing its GL acceleration in Mac. (I made same tests with its Quartz backend but the performance was disappointing.) It says it supports EGL and GLX. Use of GLX requires (externally installed) <a href="http://xquartz.macosforge.org/landing/" rel="noreferrer">XQuartz</a> and opens an XWindow so I lean towards EGL:</p>
  
  <p>Apple's <a href="https://developer.apple.com/library/mac/documentation/graphicsimaging/conceptual/opengl-macprogguide/opengl_drawing/opengl_drawing.html" rel="noreferrer">programming guide pages</a> tell to use NSOpenGL*, which <a href="http://www.geeks3d.com/20121109/overview-of-opengl-support-on-os-x/" rel="noreferrer">this</a> page and others say it uses CGL.</p>
  
  <p><a href="http://www.g-truc.net/post-0457.html" rel="noreferrer">This</a> (2012) page says Mac has EAGL and it is only similar to EGL (I suppose it refers to IOS, not MAC as its EAGL reference links to IOS help pages).</p>
  
  <p><a href="https://code.google.com/p/angleproject/" rel="noreferrer">Angle</a> says it supports EGL but it is for Direct3D in windows, as I understand(?)</p>
  
  <p><a href="http://www.glfw.org/" rel="noreferrer">GLFW</a> v3 is also said to support (in future releases?) but via GLX, it is said (?).</p>
  
  <p><a href="http://malideveloper.arm.com/" rel="noreferrer">Mali</a> says it has a simulator for Mac but I don't know if it is accelerated or is only for its hardware (it also says it only supports a subset of EGL on different platforms).</p>
  
  <p>Most of the links refer to mobile when EGL is used. I am using Mac OS 10.8 and XCode 4.6. What is the current situation / How can I (if I can) use EGL in Mac (now)?</p>