![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Mesh/Rendering/GlMeshRendererNormals.h>
Renders the normals of a Mesh using line primitives. More...
Renders the normals of a Mesh using line primitives.
This low-level renderer renders lines starting from each vertex of the mesh pointing in the direction of the local normal. The GlMeshBuffers instance passed to render() defines whether to use vertex or face normals.
This class does not implement the GlObject interface by design as it is meant to serve as a reusable component to be integrated into high-level classes.
Classes | |
| struct | DisplayOptions |
| Complete record of rendering options for GlMeshRendererNormals. More... | |
Public Member Functions | |
| void | render (const MeshGl &mesh, const DisplayOptions &options, const GL::ViewState &viewState) const |
| Renders the normals of mesh into the currently active OpenGL context. | |
| void render | ( | const MeshGl & | mesh, |
| const DisplayOptions & | options, | ||
| const GL::ViewState & | viewState ) const |
Renders the normals of mesh into the currently active OpenGL context.
| mesh | The mesh to render. |
| options | The rendering options to use. |
| viewState | The GL::ViewState to use. |