Files
qt5-legatus-legacy/Lts/Plugins/BuildingViewer/Common/BgViewer/viewerCtrl/videocomponent.h
T
2026-08-13 18:33:10 +02:00

37 lines
832 B
C++
Executable File

#pragma once
#include <dtEntity/component.h>
#include <dtEntity/defaultentitysystem.h>
#include <dtEntity/property.h>
#include <dtEntity/debugdrawinterface.h>
#include "windowcapturecallback.h"
namespace VCtrl
{
////////////////////////////////////////////////////////////////////////////////
class VideoSystem final
: public dtEntity::EntitySystem
{
using BaseClass = dtEntity::EntitySystem;
public:
static const dtEntity::ComponentType TYPE;
using dtEntity::EntitySystem::EntitySystem;
dtEntity::ComponentType GetComponentType() const override { return TYPE; }
bool StartVideoRecording(unsigned int contextid, const std::string &path, int w, int h, int framerate, int quality);
bool StopVideoRecording(unsigned int contextid);
private:
osg::ref_ptr<WindowCaptureCallback> mWindowCaptureCallback;
};
}