GLShadersRegistry.h 355 Bytes
Newer Older
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
1 2 3
#import <UIKit/UIKit.h>
#import "RCTBridgeModule.h"
#import "GLShader.h"
4
#import "GLFBO.h"
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
5 6 7 8 9 10 11


@interface GLShadersRegistry : NSObject <RCTBridgeModule>

/**
 * Get the global shader for a given id.
 */
12 13 14 15 16
+ (GLShader*) getShader: (NSNumber *)id;

+ (GLFBO*) getFBO: (NSNumber *)id;

+ (EAGLContext *) getContext;
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
17 18 19

@property NSMutableDictionary *shaders;
@end