GLTexture.h 340 Bytes
Newer Older
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
1
#import <GLKit/GLKit.h>
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
2
#import <React/RCTBridge.h>
3 4
#import "GLImageData.h"

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
5 6 7
@interface GLTexture: NSObject

@property EAGLContext *context;
8
@property GLuint handle;
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
9 10 11

- (instancetype)init;
- (int)bind: (int)unit;
12 13 14
- (void)bind;

- (void)setShapeWithWidth:(float)width withHeight:(float)height;
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
15

16
- (void)setPixels: (GLImageData *)data;
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
17 18

@end