¡@

Home 

2014/10/15 ¤U¤È 10:13:17

iphone Programming Glossary: rendertexture

OpenGL ES 2d rendering into image

http://stackoverflow.com/questions/10455329/opengl-es-2d-rendering-into-image

int imageSize.width int imageSize.height kCVPixelFormatType_32BGRA attrs renderTarget CVOpenGLESTextureRef renderTexture CVOpenGLESTextureCacheCreateTextureFromImage kCFAllocatorDefault rawDataTextureCache renderTarget NULL texture attributes.. opengl format int imageSize.width int imageSize.height GL_BGRA native iOS format GL_UNSIGNED_BYTE 0 renderTexture CFRelease attrs CFRelease empty glBindTexture CVOpenGLESTextureGetTarget renderTexture CVOpenGLESTextureGetName renderTexture.. GL_UNSIGNED_BYTE 0 renderTexture CFRelease attrs CFRelease empty glBindTexture CVOpenGLESTextureGetTarget renderTexture CVOpenGLESTextureGetName renderTexture glTexParameterf GL_TEXTURE_2D GL_TEXTURE_WRAP_S GL_CLAMP_TO_EDGE glTexParameterf..

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

http://stackoverflow.com/questions/9550297/faster-alternative-to-glreadpixels-in-iphone-opengl-es-2-0

CVPixelBufferPoolCreatePixelBuffer NULL assetWriterPixelBufferInput pixelBufferPool renderTarget CVOpenGLESTextureRef renderTexture CVOpenGLESTextureCacheCreateTextureFromImage kCFAllocatorDefault coreVideoTextureCache renderTarget NULL texture attributes.. opengl format int videoSize.width int videoSize.height GL_BGRA native iOS format GL_UNSIGNED_BYTE 0 renderTexture glBindTexture CVOpenGLESTextureGetTarget renderTexture CVOpenGLESTextureGetName renderTexture glTexParameterf GL_TEXTURE_2D.. GL_BGRA native iOS format GL_UNSIGNED_BYTE 0 renderTexture glBindTexture CVOpenGLESTextureGetTarget renderTexture CVOpenGLESTextureGetName renderTexture glTexParameterf GL_TEXTURE_2D GL_TEXTURE_WRAP_S GL_CLAMP_TO_EDGE glTexParameterf..