blob: df9a20d358341b0acb556e7c3aa63c6ea3638da8 [file] [log] [blame]
jvanverth9f372462016-04-06 06:08:59 -07001/*
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
jvanverth34524262016-05-04 13:49:13 -070011namespace sk_app {
12
jvanverth9f372462016-04-06 06:08:59 -070013class Application {
14public:
15 static Application* Create(int argc, char** argv, void* platformData);
16
17 virtual ~Application() {}
18
liyuqian2edb0f42016-07-06 14:11:32 -070019 virtual void onIdle() = 0;
jvanverth9f372462016-04-06 06:08:59 -070020};
21
jvanverth34524262016-05-04 13:49:13 -070022} // namespace sk_app
23
jvanverth9f372462016-04-06 06:08:59 -070024#endif