LightsprintSDK 2021.08.08
rr_gl::PluginParamsStereo Class Reference

#include <PluginStereo.h>

Inheritance diagram for rr_gl::PluginParamsStereo:
rr_gl::PluginParams

Public Member Functions

 PluginParamsStereo (const PluginParams *_next, VRDevice *_vrDevice)
 
virtual PluginRuntimecreateRuntime (const PluginCreateRuntimeParams &params) const
 
virtual class PluginRuntimecreateRuntime (const PluginCreateRuntimeParams &params) const =0
 

Public Attributes

VRDevicevrDevice
 
- Public Attributes inherited from rr_gl::PluginParams
const PluginParamsnext
 

Detailed Description

Renders scene (calls next plugin) twice, once for left eye, once for right eye.

Stereo mode is selected by rr::RRCamera::stereoMode. For SM_OCULUS_RIFT and SM_OPENVR modes, stereo plugin calls specialized oculus and openvr plugins, other modes are implemented internally.

Constructor & Destructor Documentation

◆ PluginParamsStereo()

rr_gl::PluginParamsStereo::PluginParamsStereo ( const PluginParams _next,
VRDevice _vrDevice 
)
inline

Convenience ctor, for setting plugin parameters.

Member Function Documentation

◆ createRuntime()

virtual PluginRuntime * rr_gl::PluginParamsStereo::createRuntime ( const PluginCreateRuntimeParams params) const
virtual

Access to actual plugin code, called by Renderer.

Implements rr_gl::PluginParams.

Member Data Documentation

◆ vrDevice

VRDevice* rr_gl::PluginParamsStereo::vrDevice

VR device to use for rendering in SM_OCULUS_RIFT and SM_OPENVR modes.