OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2016 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef VulkanViewer_DEFINED |
| 9 #define VulkanViewer_DEFINED |
| 10 |
| 11 #include "Application.h" |
| 12 #include "Window.h" |
| 13 |
| 14 class SkCanvas; |
| 15 |
| 16 class VulkanViewer : public Application { |
| 17 public: |
| 18 VulkanViewer(int argc, char** argv, void* platformData); |
| 19 ~VulkanViewer() override; |
| 20 |
| 21 bool onKey(int key, bool keyDown); |
| 22 bool onMouse(int x, int y, bool mouseDown); |
| 23 void onPaint(SkCanvas* canvas); |
| 24 |
| 25 void onIdle(float dt) override; |
| 26 |
| 27 private: |
| 28 Window* fWindow; |
| 29 }; |
| 30 |
| 31 |
| 32 #endif |
OLD | NEW |