title: How to render/draw buffer object to framebuffer without glDrawPixels
body: <p>According to opengl spec 4.0 glDrawPixels is deprecated.</p>
  <p>For cuda interoperability it seems best to use &quot;opengl buffer objects&quot;. (An alternative could be textures or surfaces but these have caching/concurrency issues and are therefore unusable for my cuda kernel).</p>
  <p>I simply want to create a cuda kernel which uses this mapped opengl buffer object and uses it as a &quot;pixel array&quot; or a piece of memory holding pixels, later the buffer is unmapped.</p>
  <p>I then want the opengl program to draw the buffer object to the framebuffer. I would like to use an opengl api which is not deprecated.</p>
  <p>What other ways/apis are there to draw a buffer object to the frame buffer ? (Also render buffers cannot be used since they probably have same issue as cuda arrays/caching issues, so this rules out framebuffer object/extension ?!?).</p>
  <p>Is there a gap/missing functionality in opengl 4.0 now that glDrawPixels is deprecated ? Or is there an alternative ?</p>