Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,36 @@
|
||||
#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;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user