Fixes for vulkanExample: frame timing now equals diff between frames for Win & macOS portability, support vsync off rendering on macOS, support swapchain image count change on resize, handle macOS fullscreen; Fixes for xcode example: use PanGestureRecognizer on iOS, add macOS cursor tracking, cleanup Vulkan on shutdown
This commit is contained in:
parent
a1e19ea5de
commit
cb343c329a
15 changed files with 222 additions and 87 deletions
|
|
@ -15,7 +15,6 @@ class MVKExample {
|
|||
public:
|
||||
void renderFrame();
|
||||
void displayLinkOutputCb(); // SRS - expose VulkanExampleBase::displayLinkOutputCb() to DemoViewController
|
||||
void setRefreshPeriod(double refreshPeriod); // SRS - set VulkanExampleBase::refreshPeriod from DemoViewController displayLink
|
||||
|
||||
void keyPressed(uint32_t keyChar); // SRS - expose keyboard events to DemoViewController
|
||||
void keyDown(uint32_t keyChar);
|
||||
|
|
@ -29,7 +28,9 @@ public:
|
|||
void otherMouseUp();
|
||||
void mouseDragged(double x, double y);
|
||||
void scrollWheel(short wheelDelta);
|
||||
|
||||
|
||||
void fullScreen(bool fullscreen); // SRS - expose VulkanExampleBase::settings.fullscreen to DemoView (macOS only)
|
||||
|
||||
MVKExample(void* view);
|
||||
~MVKExample();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue