Magnum::OvrIntegration::LayerEyeFov class

Wrapper around ovrLayerEveFov

Base classes

class HeadLockableLayer
Superclass for layers which can be locked relative to the HMD.

Constructors, destructors, conversion operators

LayerEyeFov() explicit
Constructor.

Public functions

auto setColorTexture(Int eye, const TextureSwapChain& swapChain) -> LayerEyeFov&
Set color texture.
auto setViewport(Int eye, const Range2Di& viewport) -> LayerEyeFov&
Set the viewport.
auto setRenderPoses(const Session& session) -> LayerEyeFov&
Set the render pose.
auto setFov(const Session& session) -> LayerEyeFov&
Set fov for this layer.

Function documentation

LayerEyeFov& Magnum::OvrIntegration::LayerEyeFov::setColorTexture(Int eye, const TextureSwapChain& swapChain)

Set color texture.

Parameters
eye Index of the eye the color texture is set for
swapChain Texture swap chain to set as color texture
Returns Reference to self (for method chaining)

LayerEyeFov& Magnum::OvrIntegration::LayerEyeFov::setViewport(Int eye, const Range2Di& viewport)

Set the viewport.

Parameters
eye Eye index to set the viewport for
viewport Viewport to set to
Returns Reference to self (for method chaining)

LayerEyeFov& Magnum::OvrIntegration::LayerEyeFov::setRenderPoses(const Session& session)

Set the render pose.

Parameters
session Session to get the render pose from
Returns Reference to self (for method chaining)

LayerEyeFov& Magnum::OvrIntegration::LayerEyeFov::setFov(const Session& session)

Set fov for this layer.

Parameters
session Session to get the default eye fov from
Returns Reference to self (for method chaining)