present.lua 702 B

123456789101112131415161718192021222324
  1. return {
  2. tag = 'work-submission',
  3. summary = 'Update the desktop window contents.',
  4. description = [[
  5. Presents the window texture to the desktop window. This function is called automatically by the
  6. default implementation of `lovr.run`, so it normally does not need to be called.
  7. ]],
  8. arguments = {},
  9. returns = {},
  10. variants = {
  11. {
  12. arguments = {},
  13. returns = {}
  14. }
  15. },
  16. notes = [[
  17. This should be called after submitting the window pass (`lovr.graphics.getWindowPass`). If the
  18. window texture has not been rendered to since the last present, this function does nothing.
  19. ]],
  20. related = {
  21. 'lovr.graphics.submit',
  22. 'lovr.graphics.getWindowPass'
  23. }
  24. }