/* * MVKExample.cpp * * Copyright (c) 2016-2017 The Brenwill Workshop Ltd. * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ #include "MVKExample.h" #include "examples.h" 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); } MVKExample::MVKExample(void* view) { _vulkanExample = new VulkanExample(); _vulkanExample->initVulkan(); _vulkanExample->setupWindow(view); // _vulkanExample->initSwapchain(); // SRS - initSwapchain() is now part of VulkanExampleBase::prepare() _vulkanExample->prepare(); } MVKExample::~MVKExample() { delete _vulkanExample; }