Files
PojavLauncher_iOS/Natives/GameSurfaceView.m
khanhduytran0 8264aac911 Refactor[gl_bridge]: split wrapper to separate files
- Cleanup virgl backend code

Additionally, exit will now have animation
2023-11-26 05:15:13 +07:00

28 lines
541 B
Objective-C

#import "GameSurfaceView.h"
#import "LauncherPreferences.h"
#import "PLProfiles.h"
#import "utils.h"
@interface GameSurfaceView()
@end
@implementation GameSurfaceView
- (id)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
self.layer.drawsAsynchronously = YES;
self.layer.opaque = YES;
return self;
}
+ (Class)layerClass {
if ([[PLProfiles resolveKeyForCurrentProfile:@"renderer"] hasPrefix:@"libOSMesa"]) {
return CALayer.class;
} else {
return CAMetalLayer.class;
}
}
@end