tools/sk_app/Application.h
raw| 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 Application_DEFINED |
| 9 | #define Application_DEFINED |
| 10 | |
| 11 | namespace sk_app { |
| 12 | |
| 13 | class Application { |
| 14 | public: |
| 15 | static Application* Create(int argc, char** argv, void* platformData); |
| 16 | |
| 17 | virtual ~Application() {} |
| 18 | |
| 19 | virtual void onIdle() = 0; |
| 20 | }; |
| 21 | |
| 22 | } // namespace sk_app |
| 23 | |
| 24 | #endif |