21 lines
571 B
Objective-C
Executable File
21 lines
571 B
Objective-C
Executable File
/*
|
||
Copyright (C) 2014 Apple Inc. All Rights Reserved.
|
||
See LICENSE.txt for this sample’s licensing information
|
||
|
||
Abstract:
|
||
|
||
This CAEAGLLayer subclass demonstrates how to draw a CVPixelBufferRef using OpenGLES and display the timecode associated with that pixel buffer in the top right corner.
|
||
|
||
*/
|
||
|
||
//@import QuartzCore;
|
||
#include <QuartzCore/QuartzCore.h>
|
||
#include <CoreVideo/CoreVideo.h>
|
||
|
||
@interface AAPLEAGLLayer : CAEAGLLayer
|
||
@property CVPixelBufferRef pixelBuffer;
|
||
- (id)initWithFrame:(CGRect)frame;
|
||
- (void)resetRenderBuffer;
|
||
- (void) cleanUpTextures;
|
||
@end
|