Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::algorithm::LineRenderer Class Reference

Helper class for rendering a mesh as lines. Only renders Mesh with DrawType::Lines. More...

#include <linerenderer.h>

Public Member Functions

 LineRenderer (const LineSettingsInterface *settings)
 
 LineRenderer (const std::vector< MeshShaderCache::Requirement > &requirements, const LineSettingsInterface *settings)
 
void render (const Mesh &mesh, const Camera &camera, size2_t screenDim, const LineSettingsInterface *settings)
 Render lines according to currently set LineSettingsInterface settings Only meshes with DrawType::Lines will be rendered.
 
template<typename... T>
void renderWithUniforms (const Mesh &mesh, const Camera &camera, size2_t screenDim, const LineSettingsInterface *settings, const T &... args)
 

Protected Member Functions

void render (const Mesh &mesh, const Camera &camera, size2_t screenDim, const LineSettingsInterface *settings, const std::function< void(Shader &)> &func)
 
void configureShaders ()
 
void setUniforms (Shader &shader, const Mesh &mesh, const Camera &camera, size2_t screenDim, const std::function< void(Shader &)> &func)
 
void configureShader (Shader &shader)
 

Protected Attributes

LineSettings settings_
 Local cache.
 
MeshShaderCache lineShaders_
 
TFLookupTable tfLookup_
 

Detailed Description

Helper class for rendering a mesh as lines. Only renders Mesh with DrawType::Lines.

Member Function Documentation

◆ render()

void inviwo::algorithm::LineRenderer::render ( const Mesh & mesh,
const Camera & camera,
size2_t screenDim,
const LineSettingsInterface * settings )

Render lines according to currently set LineSettingsInterface settings Only meshes with DrawType::Lines will be rendered.

Parameters
meshto render as lines, must
camerafor projection
screenDimwidth, height in pixels
settings
See also
LineSettingsInterface

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