In the wwdc sample code there is a project that opens the camera and when you touch the screen it creates ripples.
I've been looking to get the ripple effect without the camera but one part of it has me stuck.
the AVCaptureVideoDataOutputSampleBufferDelegate delegate method
initializes the ripple object, and then it create some texture thing using
But that requires a CVImageBufferRef object which it gets from the delegate's parameters.
In this case... what am I meant to replace this code with if I want the ripple to be on top of a view that isn't showing the camera?
I've been looking to get the ripple effect without the camera but one part of it has me stuck.
the AVCaptureVideoDataOutputSampleBufferDelegate delegate method
Code:
- (void)captureOutput:(AVCaptureOutput *)captureOutput
didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
fromConnection:(AVCaptureConnection *)connection
Code:
CVOpenGLESTextureCacheCreateTextureFromImage()
In this case... what am I meant to replace this code with if I want the ripple to be on top of a view that isn't showing the camera?