getViewCount.lua 838 B

1234567891011121314151617181920212223242526272829
  1. return {
  2. tag = 'headset',
  3. summary = 'Get the number of views used for rendering.',
  4. description = [[
  5. Returns the number of views used for rendering. Each view consists of a pose in space and a set
  6. of angle values that determine the field of view.
  7. This is usually 2 for stereo rendering configurations, but it can also be different. For
  8. example, one way of doing foveated rendering uses 2 views for each eye -- one low quality view
  9. with a wider field of view, and a high quality view with a narrower field of view.
  10. ]],
  11. arguments = {},
  12. returns = {
  13. count = {
  14. type = 'number',
  15. description = 'The number of views.'
  16. }
  17. },
  18. variants = {
  19. {
  20. arguments = {},
  21. returns = { 'count' }
  22. }
  23. },
  24. related = {
  25. 'lovr.headset.getViewPose',
  26. 'lovr.headset.getViewAngles'
  27. }
  28. }