Module webxr_api::view

source ·
Expand description

This crate uses euclid’s typed units, and exposes different coordinate spaces.

Structs§

  • Pattern-match on eyes
  • For each eye, the pose of that eye, its projection onto its display. For stereo displays, we have a View<LeftEye> and a View<RightEye>. For mono displays, we hagve a View<Viewer> https://immersive-web.github.io/webxr/#xrview
  • A list of viewports per-eye in the order of fields in Views.

Enums§

  • The coordinate space of a secondary capture view
  • The coordinate space of the back frustrum of a cubemap
  • The coordinate space of the bottom frustrum of a cubemap
  • The coordinate space of the left frustrum of a cubemap
  • The coordinate space of the right frustrum of a cubemap
  • The coordinate space of the top frustrum of a cubemap
  • The normalized device coordinate space, where the display is from (-1,-1) to (1,1).
  • The coordinate space of the floor https://immersive-web.github.io/webxr/#dom-xrreferencespacetype-local-floor
  • The coordinate space of an input device
  • The coordinate space of the left eye https://immersive-web.github.io/webxr/#dom-xreye-left
  • The native 3D coordinate space of the device This is not part of the webvr specification.
  • The coordinate space of the right eye https://immersive-web.github.io/webxr/#dom-xreye-right
  • The coordinate space of the viewer https://immersive-web.github.io/webxr/#dom-xrreferencespacetype-viewer
  • The unnormalized device coordinate space, where the display is from (0,0) to (w,h), measured in pixels.
  • Whether a device is mono or stereo, and the views it supports.

Constants§