Lib: g_app - levantocode/otcv8reference-materials GitHub Wiki

Lib g_map Functions

Summary

  1. Basic Info
  2. Build Info
  3. Type
  4. FPS Stats
  5. Scaling
  6. Graphics FPS
  7. Current State
  8. Screenshot

App Basic Info

g_app.getName() g_app.getCompactName()

g_app.getVersion()

g_app.getAuthor()


App Build Info

g_app.getBuildRevision()

g_app.getBuildCommit()

g_app.getBuildDate()


Type

g_app.isMobile()

g_app.getOs()


FPS Stats

g_app.getFps()

g_app.getMaxFps() g_app.setMaxFps()


Scaling

g_app.scale()

g_app.scaleUp() g_app.scaleDown()


Graphics FPS

g_app.getGraphicsFps()

g_app.getProcessingFps()


Current State

g_app.isRunning()

g_app.restart()

g_app.exit()


Screenshot

g_app.doScreenshot(filenameToSaveAs)