-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCVPOpenGLESTextureCache.h
27 lines (14 loc) · 1020 Bytes
/
CVPOpenGLESTextureCache.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#import <Foundation/Foundation.h>
#import <CoreVideo/CoreVideo.h>
#import <OpenGLES/EAGL.h>
#import <OpenGLPlus/GLPPixelformat.h>
@class CVPOpenGLESTexture;
@interface CVPOpenGLESTextureCache : NSObject
+ (instancetype)textureCacheWithContext:(EAGLContext *)context error:(NSError **)error;
- (instancetype)initWithContext:(EAGLContext *)context error:(NSError **)error;
- (CVPOpenGLESTexture *)textureWithPixelBuffer:(CVPixelBufferRef)pixelBuffer error:(NSError **)error;
- (CVPOpenGLESTexture *)textureWithPixelBuffer:(CVPixelBufferRef)pixelBuffer plane:(size_t)plane error:(NSError **)error;
- (CVPOpenGLESTexture *)textureWithPixelBuffer:(CVPixelBufferRef)pixelBuffer pixelformat:(GLPPixelformat)pixelformat width:(GLsizei)width height:(GLsizei)height error:(NSError **)error;
- (CVPOpenGLESTexture *)textureWithPixelBuffer:(CVPixelBufferRef)pixelBuffer pixelformat:(GLPPixelformat)pixelformat width:(GLsizei)width height:(GLsizei)height plane:(size_t)plane error:(NSError **)error;
- (void)flush;
@end