GLImageData.h 394 Bytes
Newer Older
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
1 2
#import <GLKit/GLKit.h>

3
@interface GLImageData: NSObject
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
4 5 6 7 8

@property (nonatomic) GLubyte *data;
@property (nonatomic) int width;
@property (nonatomic) int height;

9 10 11 12
+ (GLImageData*) empty;
+ (GLImageData*) genPixelsWithImage: (UIImage *)image;
+ (GLImageData*) genPixelsWithView: (UIView *)view;

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
13 14 15
- (instancetype)initWithData: (GLubyte *)data withWidth:(int)width withHeight:(int)height;

@end
16