How to load IOSurface in OpenGL for Mac OS X Snow Leopard application

前端 未结 1 1313
抹茶落季
抹茶落季 2020-12-21 03:57

Apple added the new IOSurface framework as part of the 10.6 Mac OS X firm update. Since this framework relatively new, I haven\'t found the much need documentation on how to

相关标签:
1条回答
  • 2020-12-21 04:25

    The IOSurface API is quite similar to Core Video's CVPixelBuffer, which is documented, so you could start by looking at the CVPixelBuffer documentation and comparing with IOSurfaceAPI.h.

    To bind an OpenGL texture to an IOSurface, see the CGLTexImageIOSurface2D function, which is defined in <OpenGL/CGLIOSurface.h>.

    0 讨论(0)
提交回复
热议问题