![]() |
SGCT master (487fac4)
Simple Graphics Cluster Toolkit
|
This class is used internally by SGCT and is called when taking screenshots. More...
#include <sgct/screencapture.h>
Classes | |
| struct | ScreenCaptureThreadInfo |
Public Types | |
| enum class | CaptureSource { Texture , BackBuffer , LeftBackBuffer , RightBackBuffer } |
| The different file formats supported. More... | |
| enum class | EyeIndex { Mono , StereoLeft , StereoRight } |
Public Member Functions | |
| ScreenCapture (const Window &window, ScreenCapture::EyeIndex ei, int bytesPerColor, unsigned int colorDataType, bool addAlpha) | |
| ~ScreenCapture () | |
| void | resize (ivec2 resolution) |
| Initializes the PBO or re-sizes it if the frame buffer size have changed. | |
| void | saveScreenCapture (unsigned int textureId, CaptureSource capSrc=CaptureSource::Texture) |
| This function saves the images to disc. | |
This class is used internally by SGCT and is called when taking screenshots.
|
strong |
|
strong |
| sgct::ScreenCapture::ScreenCapture | ( | const Window & | window, |
| ScreenCapture::EyeIndex | ei, | ||
| int | bytesPerColor, | ||
| unsigned int | colorDataType, | ||
| bool | addAlpha ) |
| sgct::ScreenCapture::~ScreenCapture | ( | ) |
| void sgct::ScreenCapture::resize | ( | ivec2 | resolution | ) |
Initializes the PBO or re-sizes it if the frame buffer size have changed.
| resolution | The pixel resolution of the frame buffer |
| void sgct::ScreenCapture::saveScreenCapture | ( | unsigned int | textureId, |
| CaptureSource | capSrc = CaptureSource::Texture ) |
This function saves the images to disc.
| textureId | The texture that will be streamed from the GPU if frame buffer objects are used in the rendering |
| capSrc | The object that should be captured |