getViewCount.lua 770 B

123456789101112131415161718192021222324
  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. {
  14. name = 'count',
  15. type = 'number',
  16. description = 'The number of views.'
  17. }
  18. },
  19. related = {
  20. 'lovr.headset.getViewPose',
  21. 'lovr.headset.getViewAngles'
  22. }
  23. }