Inviwo 0.9.12-pre
Inviwo documentation
|
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_ |
Helper class for rendering a mesh as lines. Only renders Mesh with DrawType::Lines.
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.
mesh | to render as lines, must |
camera | for projection |
screenDim | width, height in pixels |
settings |