Thursday, February 14, 2013

I wrote a little cheat-sheet for data transfer in OpenGL. Here it is. Hope you find it useful!


From\ToTextureFramebufferHost Memory
TextureBind texture to framebuffer using glFramebufferTextureglDraw*If OES, bind texture to framebuffer using glFramebufferTexture. Else, glGetTexImage
Frame-bufferglCopyTexImage2DMultiple render targets?glReadPixels
Host MemoryglTex(Sub)Image2D. Can use glTexStorage2D to allocate if using new GLHost memory -> Texture -> Framebuffermemcpy?

No comments:

Post a Comment