Changes to build on macOS and animate frames
This commit is contained in:
parent
0dc33496df
commit
2349738013
11 changed files with 267 additions and 107 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue