Cogs.Core
Extensions
Video
VideoPlaybackSystem.h
1
#pragma once
2
3
#include "VideoPlaybackComponent.h"
4
#include "Systems/ComponentSystem.h"
5
6
namespace
Cogs::Core
7
{
8
struct
VideoPlaybackData
9
{
10
Cogs::Core::TextureHandle
texture;
11
};
12
13
class
VideoPlaybackSystem
:
public
ComponentSystemWithDataPool
<Cogs::Core::VideoPlaybackComponent, VideoPlaybackData>
14
{
15
public
:
16
VideoPlaybackSystem
(
Memory::Allocator
* allocator,
SizeType
capacity) :
ComponentSystemWithDataPool
(allocator, capacity) {}
17
18
ComponentHandle
createComponent
()
override
;
19
void
destroyComponent
(
ComponentHandle
)
override
;
20
21
void
update
(
Context
*
context
)
override
;
22
};
23
}
// namespace ...
Cogs::Core::ComponentSystemBase::context
Context * context
Pointer to the Context instance the system lives in.
Definition:
ComponentSystem.h:136
Cogs::Core::ComponentSystemBase::update
void update()
Updates the system state to that of the current frame.
Definition:
ComponentSystem.h:65
Cogs::Core::ComponentSystemWithDataPool
Component system with parallel data per component stored in a pool similar to how the components them...
Definition:
ComponentSystem.h:365
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Core::VideoPlaybackSystem
Definition:
VideoPlaybackSystem.h:14
Cogs::Core::VideoPlaybackSystem::destroyComponent
void destroyComponent(ComponentHandle) override
Definition:
VideoPlaybackSystem.cpp:18
Cogs::Core::VideoPlaybackSystem::createComponent
ComponentHandle createComponent() override
Definition:
VideoPlaybackSystem.cpp:13
Cogs::Memory::Allocator
Base allocator implementation.
Definition:
Allocator.h:30
Cogs::Core
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Definition:
ComponentFunctions.h:10
Cogs::SizeType
ComponentIndex SizeType
Type used to track the size of pools.
Definition:
Component.h:19
Cogs::ComponentModel::ComponentHandle
Handle to a Component instance.
Definition:
Component.h:67
Cogs::Core::ResourceHandle_t< Texture >
Cogs::Core::VideoPlaybackData
Definition:
VideoPlaybackSystem.h:9
Generated by
1.9.6