SGCT master (487fac4)
Simple Graphics Cluster Toolkit
Loading...
Searching...
No Matches
sgct::CorrectionMesh Class Reference

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.

Detailed Description

Helper class for reading and rendering a correction mesh.

A correction mesh is used for warping and edge-blending.

Member Function Documentation

◆ loadMesh()

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.

Parameters
pathThe path to the mesh data
parentThe pointer to parent viewport
needsMaskGeometryIf true, a separate geometry to applying blend masks is loaded
textureRenderModeOnly 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
Exceptions
std::runtime_errorif mesh was not loaded successfully

◆ renderMaskMesh()

void sgct::CorrectionMesh::renderMaskMesh ( ) const

Render the final mesh where for mapping the frame buffer to the screen.

◆ renderQuadMesh()

void sgct::CorrectionMesh::renderQuadMesh ( ) const

Render the final mesh where for mapping the frame buffer to the screen.

◆ renderWarpMesh()

void sgct::CorrectionMesh::renderWarpMesh ( ) const

Render the final mesh where for mapping the frame buffer to the screen.


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