Changes to build on macOS and animate frames

This commit is contained in:
Stephen Saunders 2021-09-10 01:23:49 -04:00
parent 0dc33496df
commit 2349738013
11 changed files with 267 additions and 107 deletions

View file

@ -10,7 +10,7 @@
#include "MVKExample.h"
const std::string VulkanExampleBase::getAssetPath() {
const std::string getAssetPath() {
return [NSBundle.mainBundle.resourcePath stringByAppendingString: @"/data/"].UTF8String;
}
@ -55,7 +55,8 @@ const std::string VulkanExampleBase::getAssetPath() {
-(BOOL) canBecomeFirstResponder { return _viewHasAppeared; }
-(void) renderFrame {
_mvkExample->renderFrame();
//_mvkExample->renderFrame();
_mvkExample->nextFrame(); // SRS - Call MVKExample::nextFrame() to animate frames vs. MVKExample::renderFrame() for static image
}
-(void) dealloc {