mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-07 12:00:48 +00:00
16 lines
445 B
Objective-C
16 lines
445 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import <OpenGLES/ES2/gl.h>
|
|
|
|
@interface TGPaintShader : NSObject
|
|
|
|
@property (nonatomic, readonly) GLuint program;
|
|
@property (nonatomic, readonly) NSDictionary *uniforms;
|
|
|
|
- (instancetype)initWithVertexShader:(NSString *)vertexShader fragmentShader:(NSString *)fragmentShader attributes:(NSArray *)attributes uniforms:(NSArray *)uniforms;
|
|
|
|
- (GLuint)uniformForKey:(NSString *)key;
|
|
|
|
- (void)cleanResources;
|
|
|
|
@end
|