title: Render CoreGraphics to OpenGL texture on IOS
body: <p>Using <code>CoreGraphics</code> on iOS is very easy to use, but it is possible to get the output of <code>CoreGraphics</code> and put it into <code>OpenGL</code> Textures?</p>
  
  <p>The final goal is to use <code>CGContextDrawPDFPage</code> to render very performant pdf's and write it into a specific texture id with </p>
  
  <pre><code>OpenGL.glBindTexture(GL_TEXTURE_2D, TextureNativeId);
  </code></pre>
  
  <p>It does look like <code>CoreGraphics</code> is not able to render directly into a specific "native texture id".</p>