mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Build ChatListUI
This commit is contained in:
20
submodules/LegacyComponents/Sources/TGPaintBuffers.h
Normal file
20
submodules/LegacyComponents/Sources/TGPaintBuffers.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user