Cogs.Core
|
Public Member Functions | |
void | initialize (Cogs::Core::Context *context, IGraphicsDevice *device) override |
Initialize the extension using the given context and device. | |
void | handleEvent (uint32_t eventId, const DrawContext *renderingContext) override |
Called when rendering events occur. | |
void | generateCommands (const RenderTaskContext *, RenderList *) override |
![]() | |
virtual | ~IRendererExtension ()=default |
Provided for destruction via pointer to base. | |
virtual void | initialize (class Context *context, IGraphicsDevice *device)=0 |
Initialize the extension using the given context and device. | |
virtual void | handleEvent (uint32_t eventId, const DrawContext *renderingContext)=0 |
Called when rendering events occur. | |
virtual void | generateCommands (const RenderTaskContext *renderingContext, RenderList *renderList)=0 |
Public Attributes | |
Context * | context = nullptr |
class VideoCaptureSystem * | videoCaptureSystem = nullptr |
Definition at line 8 of file VideoCaptureRenderer.h.
Cogs::Core::VideoCaptureRenderer::~VideoCaptureRenderer | ( | ) |
Definition at line 9 of file VideoCaptureRenderer.cpp.
|
inlineoverridevirtual |
Implements Cogs::Core::IRendererExtension.
Definition at line 15 of file VideoCaptureRenderer.h.
|
overridevirtual |
Called when rendering events occur.
Allows rendering extensions to handle the events in a custom way.
eventId | Rendering event identifier. May be one of RenderingEvent, or custom identifier. |
renderingContext | Pointer to rendering context data, or nullptr if not present. |
Implements Cogs::Core::IRendererExtension.
Definition at line 17 of file VideoCaptureRenderer.cpp.
References Cogs::Core::RenderingEvent::PostRender.
|
overridevirtual |
Initialize the extension using the given context and device.
context | Context the extension exists in. |
device | Graphics device used by the renderer that can be shared with the extension. |
Implements Cogs::Core::IRendererExtension.
Definition at line 12 of file VideoCaptureRenderer.cpp.
Context* Cogs::Core::VideoCaptureRenderer::context = nullptr |
Definition at line 17 of file VideoCaptureRenderer.h.
class VideoCaptureSystem* Cogs::Core::VideoCaptureRenderer::videoCaptureSystem = nullptr |
Definition at line 18 of file VideoCaptureRenderer.h.