![]() |
SGCT master (487fac4)
Simple Graphics Cluster Toolkit
|
Helper class for reading and rendering a correction mesh. More...
#include <sgct/correctionmesh.h>
Public Member Functions | |
| void | loadMesh (const std::filesystem::path &path, BaseViewport &parent, bool needsMaskGeometry=false, bool textureRenderMode=false) |
| This function finds a suitable parser for warping meshes and loads them. | |
| void | renderQuadMesh () const |
| Render the final mesh where for mapping the frame buffer to the screen. | |
| void | renderWarpMesh () const |
| Render the final mesh where for mapping the frame buffer to the screen. | |
| void | renderMaskMesh () const |
| Render the final mesh where for mapping the frame buffer to the screen. | |
Helper class for reading and rendering a correction mesh.
A correction mesh is used for warping and edge-blending.
| void sgct::CorrectionMesh::loadMesh | ( | const std::filesystem::path & | path, |
| BaseViewport & | parent, | ||
| bool | needsMaskGeometry = false, | ||
| bool | textureRenderMode = false ) |
This function finds a suitable parser for warping meshes and loads them.
| path | The path to the mesh data |
| parent | The pointer to parent viewport |
| needsMaskGeometry | If true, a separate geometry to applying blend masks is loaded |
| textureRenderMode | Only used if the loaded mesh is a pfm mesh. If true a single mesh for one eye is loaded from the file. If false, two meshes, one for the left and one for the right eye are loaded |
| std::runtime_error | if mesh was not loaded successfully |
| void sgct::CorrectionMesh::renderMaskMesh | ( | ) | const |
Render the final mesh where for mapping the frame buffer to the screen.
| void sgct::CorrectionMesh::renderQuadMesh | ( | ) | const |
Render the final mesh where for mapping the frame buffer to the screen.
| void sgct::CorrectionMesh::renderWarpMesh | ( | ) | const |
Render the final mesh where for mapping the frame buffer to the screen.