Video as texture in OpenGLES2.0
问题 I want to place video as texture to object in OpenGLES 2.0 iOS. I create AVPlayer with AVPlayerItemVideoOutput , setting NSDictionary *videoOutputOptions = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithInt:kCVPixelFormatType_32BGRA], kCVPixelBufferPixelFormatTypeKey, [NSDictionary dictionary], kCVPixelBufferIOSurfacePropertiesKey, nil]; self.videoOutput = [[AVPlayerItemVideoOutput alloc] initWithPixelBufferAttributes:videoOutputOptions]; Than I get CVPixelBufferRef for each