Cogs.Core
VideoPlaybackComponent.cpp
1#include "VideoPlaybackComponent.h"
2
3#include "Types.h"
4
5using namespace Cogs::Reflection;
6
7void Cogs::Core::VideoPlaybackComponent::registerType()
8{
9 Field fields[] = {
10 Field(Name("source"), &VideoPlaybackComponent::source),
11 Field(Name("texture"), &VideoPlaybackComponent::texture),
12
15 //Field(Name("callback"), &VideoPlaybackComponent::callback),
16 };
17 TypeDatabase::createType<VideoPlaybackComponent>()
18 .setBase<Component>()
19 .setFields(fields);
20}
Field definition describing a single data member of a data structure.
Definition: Field.h:68
Contains reflection support.
Definition: Component.h:11
std::string recordPath
Path to directory where captured video is stored.
bool recordToDisk
Write video frames to disk.
Represents an unique name.
Definition: Name.h:70