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

@ -13,6 +13,10 @@ void MVKExample::renderFrame() {
_vulkanExample->renderFrame();
}
void MVKExample::nextFrame() { // SRS - expose VulkanExampleBase::nextFrame() to DemoViewController
_vulkanExample->nextFrame();
}
void MVKExample::keyPressed(uint32_t keyCode) {
_vulkanExample->keyPressed(keyCode);
}
@ -21,7 +25,7 @@ MVKExample::MVKExample(void* view) {
_vulkanExample = new VulkanExample();
_vulkanExample->initVulkan();
_vulkanExample->setupWindow(view);
_vulkanExample->initSwapchain();
// _vulkanExample->initSwapchain(); // SRS - initSwapchain() is now part of VulkanExampleBase::prepare()
_vulkanExample->prepare();
}