Magnum::OvrIntegration::TextureSwapChain class

Texture swap chain.

Contains an array of textures which can be rendered to an HMD by the Oculus SDK Compositor.

Constructors, destructors, conversion operators

TextureSwapChain(const Session& session, const Vector2i& size) explicit
Constructor.

Public functions

auto activeTexture() -> GL::Texture2D&
Currently active texture in the set.
auto commit() -> TextureSwapChain&
Increment to use the next texture in the set.
auto ovrTextureSwapChain() const -> ::ovrTextureSwapChain
The underlying ovrTextureSwapChain

Function documentation

Magnum::OvrIntegration::TextureSwapChain::TextureSwapChain(const Session& session, const Vector2i& size) explicit

Constructor.

Parameters
session HMD for which this texture swap chain is created
size Size for the textures

TextureSwapChain& Magnum::OvrIntegration::TextureSwapChain::commit()

Increment to use the next texture in the set.

Returns Reference to self (for method chaining)