Inviwo 0.9.12-pre
Inviwo documentation
|
#include <instancerenderer.h>
Public Member Functions | |
DynPort (InstanceRenderer *theRenderer, std::unique_ptr< Inport > aPort, std::function< std::optional< size_t >()> aSize, std::function< void(Shader &, size_t)> aSet, std::function< void(ShaderObject &)> aAddUniform) | |
DynPort (const DynPort &)=delete | |
DynPort & | operator= (const DynPort &)=delete |
DynPort (DynPort &&) | |
DynPort & | operator= (DynPort &&) |
Public Attributes | |
InstanceRenderer * | renderer |
std::unique_ptr< Inport > | port |
std::function< std::optional< size_t >()> | size |
std::function< void(Shader &, size_t)> | set |
std::function< void(ShaderObject &)> | addUniform |
Helper class for the InstanceRenderer to manage construction, destruction, binding, and setting of uniforms for dynamically created ports.