mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
21 lines
608 B
Objective-C
21 lines
608 B
Objective-C
#import <OpenGLES/EAGL.h>
|
|
#import <OpenGLES/ES2/gl.h>
|
|
#import <QuartzCore/QuartzCore.h>
|
|
|
|
@interface TGPaintBuffers : NSObject
|
|
|
|
@property (nonatomic, weak) EAGLContext *context;
|
|
@property (nonatomic, readonly) CAEAGLLayer *layer;
|
|
@property (nonatomic, readonly) GLuint renderbuffer;
|
|
@property (nonatomic, readonly) GLuint framebuffer;
|
|
@property (nonatomic, readonly) GLuint stencilBuffer;
|
|
@property (nonatomic, readonly) GLint width;
|
|
@property (nonatomic, readonly) GLint height;
|
|
|
|
- (bool)update;
|
|
- (void)present;
|
|
|
|
+ (instancetype)buffersWithGLContext:(EAGLContext *)context layer:(CAEAGLLayer *)layer;
|
|
|
|
@end
|