Cogs.Core
VideoCaptureRenderer.cpp
1#include "VideoCaptureRenderer.h"
2
3#include "VideoCaptureSystem.h"
4
5#include "ExtensionRegistry.h"
6
7namespace Cogs::Core
8{
9 VideoCaptureRenderer::~VideoCaptureRenderer()
10 {
11 }
13 {
14 context = context_in;
15 videoCaptureSystem = ExtensionRegistry::getExtensionSystem<VideoCaptureSystem>(context);
16 }
17 void VideoCaptureRenderer::handleEvent(uint32_t eventId, const DrawContext *)
18 {
19 switch (eventId) {
21 videoCaptureSystem->postRender(context);
22 break;
23 default:
24 break;
25 }
26 }
27}// namespace ...
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
void handleEvent(uint32_t eventId, const DrawContext *renderingContext) override
Called when rendering events occur.
void initialize(Cogs::Core::Context *context, IGraphicsDevice *device) override
Initialize the extension using the given context and device.
Represents a graphics device used to manage graphics resources and issue drawing commands.
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
@ PostRender
Rendering has finished for a given rendering context.
Definition: IRenderer.h:101