Use getAssetPath() instead of ASSET_PATH to support broader range of platforms. Multisampling example determines sample rate from device at runtime. Move example wrapper code from DemoViewController.mm to dedicated MVKExample.cpp file. Remove AssImp libraries for iOS and macOS from repo, and add instructions for generating them from AssImp source files. Update general README.md file to mention support for iOS and macOS platforms. Add Apple logo for README.md. Update Vulkan logo to current registered TM logo. Update copyright notice of MoltenVK example files to MIT license. Examples use +/- on main keyboard, instead of numpad.
27 lines
468 B
C++
27 lines
468 B
C++
/*
|
|
* MVKExample.h
|
|
*
|
|
* Copyright (c) 2016-2017 The Brenwill Workshop Ltd.
|
|
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "vulkanexamplebase.h"
|
|
|
|
// Wrapper class for the SW VulkanExample instance.
|
|
class MVKExample {
|
|
|
|
public:
|
|
void renderFrame();
|
|
void keyPressed(uint32_t keyCode);
|
|
|
|
MVKExample(void* view);
|
|
~MVKExample();
|
|
|
|
protected:
|
|
VulkanExampleBase* _vulkanExample;
|
|
};
|
|
|
|
|
|
|