Application.h 419 B

123456789101112131415161718192021222324
  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. #ifndef Application_DEFINED
  8. #define Application_DEFINED
  9. namespace sk_app {
  10. class Application {
  11. public:
  12. static Application* Create(int argc, char** argv, void* platformData);
  13. virtual ~Application() {}
  14. virtual void onIdle() = 0;
  15. };
  16. } // namespace sk_app
  17. #endif