How to setup context sharing between GPUImage and cocos2d to capture
gameplay video
I'd like to capture video from cocos2d gameplay in my app. I can just
simply use glReadPixels, but it's very slow. I found out that
GPUImage/GPUImageMovieWriter uses more advanced approach, but I have to
setup context sharing between GPUImage and cocos2d
Anybody knows how to make that?
I've tried to push GPUImage's sharegroup into cocos2d, but I have no luck:
container = [CCGLView viewWithFrame:CGRectMake(116, 37, 480, 640)
pixelFormat:kEAGLColorFormatRGB565 depthFormat:0 preserveBackbuffer:NO
sharegroup:[[[GPUImageContext sharedImageProcessingContext] context]
sharegroup] multiSampling:NO numberOfSamples:0];
Any help would be appreciated.
No comments:
Post a Comment