ManaPlus
|
#include <openglscreenshothelper.h>
Public Member Functions | |
OpenGLScreenshotHelper () | |
~OpenGLScreenshotHelper () | |
void | prepare () |
SDL_Surface * | getScreenshot () |
Public Member Functions inherited from ScreenshotHelper | |
ScreenshotHelper () | |
virtual | ~ScreenshotHelper () |
Private Attributes | |
FBOInfo | mFbo |
Definition at line 35 of file openglscreenshothelper.h.
OpenGLScreenshotHelper::OpenGLScreenshotHelper | ( | ) |
Definition at line 39 of file openglscreenshothelper.cpp.
OpenGLScreenshotHelper::~OpenGLScreenshotHelper | ( | ) |
Definition at line 45 of file openglscreenshothelper.cpp.
|
virtual |
< Surface is in system memory
< Surface is in video memory
< Use asynchronous blits if possible
< Surface is RLE encoded
< Surface is in video memory
< Use asynchronous blits if possible
< Surface is RLE encoded
Implements ScreenshotHelper.
Definition at line 57 of file openglscreenshothelper.cpp.
References config, GraphicsManager::deleteFBO(), Configuration::getBoolValue(), graphicsManager, mainGraphics, mFbo, mglGetIntegerv, mglPixelStorei, mglReadPixels, Graphics::mHeight, MSDL_CreateRGBSurface, Graphics::mWidth, Actions::screenshot(), and top.
|
virtual |
Implements ScreenshotHelper.
Definition at line 49 of file openglscreenshothelper.cpp.
References config, GraphicsManager::createFBO(), Configuration::getBoolValue(), graphicsManager, mainGraphics, mFbo, Graphics::mHeight, and Graphics::mWidth.
|
private |
Definition at line 49 of file openglscreenshothelper.h.
Referenced by getScreenshot(), and prepare().