iOS OpenGL using parameters for glTexImage2D to make a UIImage?
问题 I am working through some existing code for a project i am assigned to. I have a successful call to glTexImage2D like this: glTexImage2D(GL_TEXTURE_2D, 0, texture->format, texture->widthTexture, texture->heightTexture, 0, texture->format, texture->type, texture->data); I would like create an image (preferably a CGImage or UIImage ) using the variables passed to glTexImage2D , but don't know if it's possible. I need to create many sequential images(many of them per second) from an OpenGL view