app.go 539 B

123456789101112131415161718
  1. // Copyright 2016 The G3N Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Package app implements a cross-platform G3N app.
  5. package app
  6. import "github.com/g3n/engine/util/logger"
  7. // Package logger
  8. var log = logger.New("APP", logger.Default)
  9. // Application singleton
  10. var a *Application
  11. // OnExit is the event generated by Application when the user
  12. // tries to close the window (desktop) or the Exit() method is called.
  13. const OnExit = "app.OnExit"