mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
parent
2cf651bed8
commit
62cbe99a27
@ -229,13 +229,15 @@ const objcM = `// Code generated by ebitenmobile. DO NOT EDIT.
|
||||
if (!active_) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (EbitenmobileviewIsGL()) {
|
||||
[[self glkView] setNeedsDisplay];
|
||||
} else {
|
||||
[self updateEbiten];
|
||||
}
|
||||
if (EbitenmobileviewIsGL()) {
|
||||
[[self glkView] setNeedsDisplay];
|
||||
} else {
|
||||
[self updateEbiten];
|
||||
}
|
||||
|
||||
@synchronized(self) {
|
||||
if (explicitRendering_) {
|
||||
[displayLink_ setPaused:YES];
|
||||
}
|
||||
@ -243,15 +245,14 @@ const objcM = `// Code generated by ebitenmobile. DO NOT EDIT.
|
||||
}
|
||||
|
||||
- (void)glkView:(GLKView*)view drawInRect:(CGRect)rect {
|
||||
@synchronized(self) {
|
||||
[self updateEbiten];
|
||||
}
|
||||
[self updateEbiten];
|
||||
}
|
||||
|
||||
- (void)updateEbiten {
|
||||
if (error_) {
|
||||
return;
|
||||
}
|
||||
|
||||
NSError* err = nil;
|
||||
EbitenmobileviewUpdate(&err);
|
||||
if (err != nil) {
|
||||
@ -303,11 +304,12 @@ const objcM = `// Code generated by ebitenmobile. DO NOT EDIT.
|
||||
|
||||
@synchronized(self) {
|
||||
active_ = false;
|
||||
NSError* err = nil;
|
||||
EbitenmobileviewSuspend(&err);
|
||||
if (err != nil) {
|
||||
[self onErrorOnGameUpdate:err];
|
||||
}
|
||||
}
|
||||
|
||||
NSError* err = nil;
|
||||
EbitenmobileviewSuspend(&err);
|
||||
if (err != nil) {
|
||||
[self onErrorOnGameUpdate:err];
|
||||
}
|
||||
}
|
||||
|
||||
@ -316,11 +318,12 @@ const objcM = `// Code generated by ebitenmobile. DO NOT EDIT.
|
||||
|
||||
@synchronized(self) {
|
||||
active_ = true;
|
||||
NSError* err = nil;
|
||||
EbitenmobileviewResume(&err);
|
||||
if (err != nil) {
|
||||
[self onErrorOnGameUpdate:err];
|
||||
}
|
||||
}
|
||||
|
||||
NSError* err = nil;
|
||||
EbitenmobileviewResume(&err);
|
||||
if (err != nil) {
|
||||
[self onErrorOnGameUpdate:err];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user