| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/opengl/framebuffertoolgl.h>
Static Public Member Functions | |
| static void | copyFB2Image (EngineGL *engine, Image *img, GLCanvas::CanvasProperties buffer=GLCanvas::RGB_BUFFER, GLCanvas::BufferSelection readBuffer=GLCanvas::CURRENT_BUFFER, const Area ®ion=Area()) |
| static void | copyImage2FB (EngineGL *engine, Image *img, GLCanvas::CanvasProperties buffer=GLCanvas::RGB_BUFFER, GLCanvas::BufferSelection writeBuffer=GLCanvas::CURRENT_BUFFER, const Area ®ion=Area()) |
| static void VRS::FrameBufferToolGL::copyFB2Image | ( | EngineGL * | engine, | |
| Image * | img, | |||
| GLCanvas::CanvasProperties | buffer = GLCanvas::RGB_BUFFER, |
|||
| GLCanvas::BufferSelection | readBuffer = GLCanvas::CURRENT_BUFFER, |
|||
| const Area & | region = Area() | |||
| ) | [static] |
Copies the current frame buffer contents into an image. The format specifies which frame buffer contents to be copied: RGB, Depth, ... The region specifies which part of the frame buffer to copy. The image must be large enough to store the region. If no region is specified, the whole frame buffer is copied.
| static void VRS::FrameBufferToolGL::copyImage2FB | ( | EngineGL * | engine, | |
| Image * | img, | |||
| GLCanvas::CanvasProperties | buffer = GLCanvas::RGB_BUFFER, |
|||
| GLCanvas::BufferSelection | writeBuffer = GLCanvas::CURRENT_BUFFER, |
|||
| const Area & | region = Area() | |||
| ) | [static] |
Copies the contents of an image into the frame buffer. The target region in the frame buffer is specified by by the area attribute.