getDisplayDimensions.lua 591 B

1234567891011121314151617181920212223242526
  1. return {
  2. tag = 'headset',
  3. summary = 'Get the dimensions of the headset display.',
  4. description = 'Returns the texture dimensions of the headset display (for one eye), in pixels.',
  5. arguments = {},
  6. returns = {
  7. width = {
  8. type = 'number',
  9. description = 'The width of the display.'
  10. },
  11. height = {
  12. type = 'number',
  13. description = 'The height of the display.'
  14. }
  15. },
  16. variants = {
  17. {
  18. arguments = {},
  19. returns = { 'width', 'height' }
  20. }
  21. },
  22. related = {
  23. 'lovr.headset.getDisplayWidth',
  24. 'lovr.headset.getDisplayHeight'
  25. }
  26. }