initial commit

This commit is contained in:
Caleb
2026-03-01 15:59:27 +08:00
commit a9e97d56cb
1426 changed files with 172367 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
//
// FUGLContext.h
// FUStaLiteDemo
//
// Created by ly-Mac on 2019/8/9.
// Copyright © 2019 ly-Mac. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <OpenGLES/EAGL.h>
NS_ASSUME_NONNULL_BEGIN
@protocol FUGLContextProtocol <NSObject>
@required
- (void)glQueueAsync:(dispatch_block_t)block;
- (void)glQueueSync:(dispatch_block_t)block;
- (void)glContextDidChange;
@property (nonatomic, weak) EAGLContext *currentGLContext;
@end
@interface FUGLContext : NSObject
@property (nonatomic,strong, readonly) EAGLContext *currentGLContext;
+ (instancetype)shareGLContext;
- (void)setCustomGLContext:(EAGLContext *)customGLContext;
- (void)glQueueAsync:(dispatch_block_t)block;
- (void)glQueueSync:(dispatch_block_t)block;
@end
NS_ASSUME_NONNULL_END