add timelapse video generation on iOS and mac , fix history memory
This commit is contained in:
@@ -141,6 +141,7 @@ static CVReturn MyDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTime
|
||||
App::I.clear();
|
||||
App::I.update(now - _prevTime);
|
||||
CGLFlushDrawable([glctx CGLContextObj]);
|
||||
_prevTime = now;
|
||||
}
|
||||
|
||||
//[[self openGLContext] flushBuffer];
|
||||
@@ -156,7 +157,7 @@ static CVReturn MyDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTime
|
||||
// return YES to have your layer redrawn
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
return kCVReturnSuccess;
|
||||
}
|
||||
|
||||
@@ -328,6 +329,7 @@ static CVReturn MyDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTime
|
||||
@end @implementation Controller
|
||||
- (void)windowWillClose:(NSNotification *)notification
|
||||
{
|
||||
App::I.terminate();
|
||||
[[NSApplication sharedApplication] terminate:nil];
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user