LightsprintSDK 2021.08.08
rr_gl::PluginRuntime Class Referenceabstract

#include <Plugin.h>

Public Member Functions

virtual void render (Renderer &, const PluginParams &, const PluginParamsShared &)=0
 
virtual ~PluginRuntime ()
 
 PluginRuntime ()
 

Public Attributes

unsigned reentrancy
 
unsigned rendering
 

Detailed Description

Runtime of single plugin, created and deleted by renderer.

Although it is possible to have two runtimes of the same type, renderer makes sure to create only one of each type and reuse them, runtimes are not created and deleted often.

By default, plugins are reentrant, but they can change their reentrancy level in ctor, renderer will ensure that it is not exceeded.

Constructor & Destructor Documentation

◆ ~PluginRuntime()

virtual rr_gl::PluginRuntime::~PluginRuntime ( )
inlinevirtual

◆ PluginRuntime()

rr_gl::PluginRuntime::PluginRuntime ( )
inline

Member Function Documentation

◆ render()

virtual void rr_gl::PluginRuntime::render ( Renderer ,
const PluginParams ,
const PluginParamsShared  
)
pure virtual

Member Data Documentation

◆ reentrancy

unsigned rr_gl::PluginRuntime::reentrancy

◆ rendering

unsigned rr_gl::PluginRuntime::rendering