![]() |
SGCT master (487fac4)
Simple Graphics Cluster Toolkit
|
#include <sgct/projection/cylindrical.h>


Public Member Functions | |
| CylindricalProjection (const config::CylindricalProjection &config, const Window &parent, User &user) | |
| ~CylindricalProjection () final | |
| void | render (const BaseViewport &viewport, FrustumMode mode) const override |
| void | renderCubemap (FrustumMode frustumMode) const override |
| void | update (const vec2 &size) const override |
| void | setRotation (float rotation) |
| void | setHeightOffset (float heightOffset) |
| void | setRadius (float radius) |
| Public Member Functions inherited from sgct::NonLinearProjection | |
| NonLinearProjection (const Window &parent) | |
| virtual | ~NonLinearProjection () |
| virtual void | initialize (unsigned int internalFormat, int nSamples) |
| Initialize the non-linear projection. | |
| virtual void | updateFrustums (FrustumMode mode, float nearClip, float farClip) |
| void | setCubemapResolution (int resolution) |
| Set the resolution of the cubemap faces. | |
| void | setInterpolationMode (InterpolationMode im) |
| Set the interpolation mode. | |
| void | setUseDepthTransformation (bool state) |
| Set if depth should be re-calculated to match the non-linear projection. | |
| void | setStereo (bool state) |
| Set if stereoscopic rendering will be enabled. | |
| virtual void | setUser (User &user) |
| ivec2 | cubemapResolution () const |
Additional Inherited Members | |
| Public Types inherited from sgct::NonLinearProjection | |
| enum class | InterpolationMode : uint8_t { Linear , Cubic } |
| Protected Member Functions inherited from sgct::NonLinearProjection | |
| virtual void | initTextures (unsigned int internalFormat) |
| virtual void | initFBO (unsigned int internalFormat, int nSamples) |
| void | setupViewport (const BaseViewport &vp) const |
| void | generateMap (unsigned int &texture, unsigned int internalFormat) |
| void | generateCubeMap (unsigned int &texture, unsigned int internalFormat) |
| void | attachTextures (int face) const |
| void | blitCubeFace (int face) const |
| void | renderCubeFace (const BaseViewport &vp, int idx, FrustumMode mode) const |
| Protected Attributes inherited from sgct::NonLinearProjection | |
| struct sgct::NonLinearProjection:: { ... } | _textures |
| struct sgct::NonLinearProjection:: { ... } | _subViewports |
| InterpolationMode | _interpolationMode = InterpolationMode::Linear |
| FrustumMode | _preferedMonoFrustumMode = FrustumMode::Mono |
| bool | _useDepthTransformation = false |
| bool | _isStereo = false |
| ivec2 | _cubemapResolution = ivec2(512, 512) |
| vec4 | _clearColor = vec4(0.3f, 0.3f, 0.3f, 1.f) |
| std::unique_ptr< OffScreenBuffer > | _cubeMapFbo |
| sgct::CylindricalProjection::CylindricalProjection | ( | const config::CylindricalProjection & | config, |
| const Window & | parent, | ||
| User & | user ) |
|
final |
|
overridevirtual |
Implements sgct::NonLinearProjection.
|
overridevirtual |
Implements sgct::NonLinearProjection.
| void sgct::CylindricalProjection::setHeightOffset | ( | float | heightOffset | ) |
| void sgct::CylindricalProjection::setRadius | ( | float | radius | ) |
| void sgct::CylindricalProjection::setRotation | ( | float | rotation | ) |
|
overridevirtual |
Implements sgct::NonLinearProjection.