LightsprintSDK 2021.08.08
rr_gl::PluginParamsCube Class Reference

#include <PluginCube.h>

Inheritance diagram for rr_gl::PluginParamsCube:
rr_gl::PluginParams

Public Member Functions

 PluginParamsCube (const PluginParams *_next, Texture *_cubeTexture, Texture *_depthTexture, float _fovDeg)
 
virtual PluginRuntimecreateRuntime (const PluginCreateRuntimeParams &params) const
 
virtual class PluginRuntimecreateRuntime (const PluginCreateRuntimeParams &params) const =0
 

Public Attributes

TexturecubeTexture
 
TexturedepthTexture
 
float fovDeg
 
- Public Attributes inherited from rr_gl::PluginParams
const PluginParamsnext
 

Detailed Description

Renders scene (next plugin) into given cubemap. For comparison, other plugins render into current render target, which is always 2d.

Constructor & Destructor Documentation

◆ PluginParamsCube()

rr_gl::PluginParamsCube::PluginParamsCube ( const PluginParams _next,
Texture _cubeTexture,
Texture _depthTexture,
float  _fovDeg 
)
inline

Convenience ctor, for setting plugin parameters.

Member Function Documentation

◆ createRuntime()

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

Access to actual plugin code, called by Renderer.

Implements rr_gl::PluginParams.

Member Data Documentation

◆ cubeTexture

Texture* rr_gl::PluginParamsCube::cubeTexture

Next plugins will render to this cubemap.

◆ depthTexture

Texture* rr_gl::PluginParamsCube::depthTexture

Next plugins will use this 2d depthmap when rendering to cubemap side.

◆ fovDeg

float rr_gl::PluginParamsCube::fovDeg

Field of view captured, 360 for full view.