mirror of
https://github.com/expo/gl-react-native.git
synced 2026-11-15 17:34:35 -10:00
25 lines
558 B
Objective-C
25 lines
558 B
Objective-C
#import <GLKit/GLKit.h>
|
|
#import "RCTBridge.h"
|
|
#import "GLImageData.h"
|
|
|
|
GLImageData* genPixelsWithImage (UIImage *image);
|
|
|
|
@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;
|
|
- (void)setPixelsEmpty;
|
|
- (void)setPixelsRandom: (int)width withHeight:(int)height;
|
|
- (void)setPixelsWithImage: (UIImage *)image;
|
|
- (void)setPixelsWithView: (UIView *)view;
|
|
|
|
@end
|