mirror of
https://github.com/expo/gl-react-native.git
synced 2026-11-15 17:34:35 -10:00
17 lines
427 B
Objective-C
17 lines
427 B
Objective-C
#import <GLKit/GLKit.h>
|
|
|
|
@interface GLImageData: NSObject
|
|
|
|
@property (nonatomic) GLubyte *data;
|
|
@property (nonatomic) int width;
|
|
@property (nonatomic) int height;
|
|
|
|
+ (GLImageData*) empty;
|
|
+ (GLImageData*) genPixelsWithImage: (UIImage *)image;
|
|
+ (GLImageData*) genPixelsWithView: (UIView *)view withPixelRatio:(float)pixelRatio;
|
|
|
|
- (instancetype)initWithData: (GLubyte *)data withWidth:(int)width withHeight:(int)height;
|
|
|
|
@end
|
|
|