init.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. return {
  2. summary = 'In the beginning, there was nothing.',
  3. description = [[
  4. `lovr` is the single global table that is exposed to every LÖVR app. It contains a set of
  5. **modules** and a set of **callbacks**.
  6. ]],
  7. sections = {
  8. {
  9. name = 'Modules',
  10. tag = 'modules',
  11. description = [[
  12. Modules are the **what** of your app; you can use the functions in modules to tell LÖVR to
  13. do things. For example, you can draw things on the screen, figure out what buttons on a
  14. controller are pressed, or load a 3D model from a file. Each module does what it says on
  15. the tin, so the `lovr.graphics` module deals with rendering graphics and `lovr.headset`
  16. allows you to interact with VR hardware.
  17. ]]
  18. },
  19. {
  20. name = 'Callbacks',
  21. tag = 'callbacks',
  22. description = [[
  23. Callbacks are the **when** of the application; you write code inside callbacks which LÖVR
  24. then calls at certain points in time. For example, the `lovr.load` callback is called once
  25. at startup, and `lovr.focus` is called when the VR application gains or loses input focus.
  26. ]]
  27. },
  28. {
  29. name = 'Version',
  30. tag = 'version',
  31. description = 'This function can be used to get the current version of LÖVR.'
  32. },
  33. {
  34. name = 'Libraries',
  35. tag = 'libraries',
  36. description = 'LÖVR bundles a few third-party modules by default.'
  37. }
  38. }
  39. }