2020-02-22 15:38:54 +04:00

15 lines
366 B
Objective-C

#import <UIKit/UIKit.h>
#import <CoreGraphics/CoreGraphics.h>
#import <OpenGLES/ES2/gl.h>
@interface TGPaintTexture : NSObject
@property (nonatomic, readonly) GLuint textureName;
+ (instancetype)textureWithImage:(UIImage *)image forceRGB:(bool)forceRGB;
- (instancetype)initWithCGImage:(CGImageRef)imageRef forceRGB:(bool)forceRGB;
- (void)cleanResources;
@end