init.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 = 'System',
  30. tag = 'system',
  31. description = [[
  32. The lovr module also exposes some functions for retrieving information about the system.
  33. ]]
  34. },
  35. {
  36. name = 'Libraries',
  37. tag = 'library',
  38. description = [[
  39. A few helpful third-party libraries are included with LÖVR for convenience.
  40. ]]
  41. }
  42. }
  43. }