1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 03:32:36 +00:00
OpenMW/apps/openmw/mwrender/screenshotmanager.hpp
2024-06-06 14:46:01 +03:00

27 lines
531 B
C++

#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