mirror of
https://github.com/expo/gl-react-native.git
synced 2026-11-15 17:34:35 -10:00
19 lines
334 B
Objective-C
19 lines
334 B
Objective-C
#import <GLKit/GLKit.h>
|
|
#import "RCTBridge.h"
|
|
#import "GLImageData.h"
|
|
|
|
@interface GLTexture: NSObject
|
|
|
|
@property EAGLContext *context;
|
|
@property GLuint handle;
|
|
|
|
- (instancetype)init;
|
|
- (int)bind: (int)unit;
|
|
- (void)bind;
|
|
|
|
- (void)setShapeWithWidth:(float)width withHeight:(float)height;
|
|
|
|
- (void)setPixels: (GLImageData *)data;
|
|
|
|
@end
|