class
#include <Magnum/OvrIntegration/Compositor.h>
LayerQuad Wrapper around ovrLayerQuad
Base classes
- class HeadLockableLayer
- Superclass for layers which can be locked relative to the HMD.
Constructors, destructors, conversion operators
- LayerQuad() explicit
- Constructor.
Public functions
- auto setColorTexture(const TextureSwapChain& swapChain) -> LayerQuad&
- Set color texture.
- auto setViewport(const Range2Di& viewport) -> LayerQuad&
- Set the viewport.
- auto setCenterPose(const DualQuaternion& pose) -> LayerQuad&
- Set position and orientation of the center of the quad.
- auto setQuadSize(const Vector2& size) -> LayerQuad&
- Set width and heigh of the quad in meters.
Function documentation
LayerQuad& Magnum:: OvrIntegration:: LayerQuad:: setColorTexture(const TextureSwapChain& swapChain)
Set color texture.
Parameters | |
---|---|
swapChain | Texture swap chain to set as color texture |
Returns | Reference to self (for method chaining) |
LayerQuad& Magnum:: OvrIntegration:: LayerQuad:: setViewport(const Range2Di& viewport)
Set the viewport.
Parameters | |
---|---|
viewport | Viewport to set to |
Returns | Reference to self (for method chaining) |
LayerQuad& Magnum:: OvrIntegration:: LayerQuad:: setCenterPose(const DualQuaternion& pose)
Set position and orientation of the center of the quad.
Parameters | |
---|---|
pose | Center pose of the quad |
Returns | Reference to self (for method chaining) |
Position is specified in meters.
LayerQuad& Magnum:: OvrIntegration:: LayerQuad:: setQuadSize(const Vector2& size)
Set width and heigh of the quad in meters.
Parameters | |
---|---|
size | Size of the quad |
Returns | Reference to self (for method chaining) |