1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-21 13:20:54 +00:00
OpenMW/apps/openmw/mwrender/screenshotmanager.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
531 B
C++
Raw Normal View History

#ifndef MWRENDER_SCREENSHOTMANAGER_H
#define MWRENDER_SCREENSHOTMANAGER_H
#include <osg/ref_ptr>
#include <osgViewer/Viewer>
namespace MWRender
{
class NotifyDrawCompletedCallback;
class ScreenshotManager
{
public:
ScreenshotManager(osgViewer::Viewer* viewer);
~ScreenshotManager();
void screenshot(osg::Image* image, int w, int h);
private:
osg::ref_ptr<osgViewer::Viewer> mViewer;
osg::ref_ptr<NotifyDrawCompletedCallback> mDrawCompleteCallback;
};
}
#endif