Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::detail::DynPort Struct Reference

#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
 
DynPortoperator= (const DynPort &)=delete
 
 DynPort (DynPort &&)
 
DynPortoperator= (DynPort &&)
 

Public Attributes

InstanceRendererrenderer
 
std::unique_ptr< Inportport
 
std::function< std::optional< size_t >()> size
 
std::function< void(Shader &, size_t)> set
 
std::function< void(ShaderObject &)> addUniform
 

Detailed Description

Helper class for the InstanceRenderer to manage construction, destruction, binding, and setting of uniforms for dynamically created ports.


The documentation for this struct was generated from the following file: