Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::Core::VideoCaptureRenderer Class Reference
Inheritance diagram for Cogs::Core::VideoCaptureRenderer:
Cogs::Core::IRendererExtension

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
 
- Public Member Functions inherited from Cogs::Core::IRendererExtension
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

Contextcontext = nullptr
 
class VideoCaptureSystemvideoCaptureSystem = nullptr
 

Detailed Description

Definition at line 8 of file VideoCaptureRenderer.h.

Constructor & Destructor Documentation

◆ ~VideoCaptureRenderer()

Cogs::Core::VideoCaptureRenderer::~VideoCaptureRenderer ( )

Definition at line 9 of file VideoCaptureRenderer.cpp.

Member Function Documentation

◆ generateCommands()

void Cogs::Core::VideoCaptureRenderer::generateCommands ( const RenderTaskContext ,
RenderList  
)
inlineoverridevirtual

Implements Cogs::Core::IRendererExtension.

Definition at line 15 of file VideoCaptureRenderer.h.

◆ handleEvent()

void Cogs::Core::VideoCaptureRenderer::handleEvent ( uint32_t  eventId,
const DrawContext renderingContext 
)
overridevirtual

Called when rendering events occur.

Allows rendering extensions to handle the events in a custom way.

Parameters
eventIdRendering event identifier. May be one of RenderingEvent, or custom identifier.
renderingContextPointer 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.

◆ initialize()

void Cogs::Core::VideoCaptureRenderer::initialize ( Cogs::Core::Context context,
IGraphicsDevice device 
)
overridevirtual

Initialize the extension using the given context and device.

Parameters
contextContext the extension exists in.
deviceGraphics device used by the renderer that can be shared with the extension.

Implements Cogs::Core::IRendererExtension.

Definition at line 12 of file VideoCaptureRenderer.cpp.

Member Data Documentation

◆ context

Context* Cogs::Core::VideoCaptureRenderer::context = nullptr

Definition at line 17 of file VideoCaptureRenderer.h.

◆ videoCaptureSystem

class VideoCaptureSystem* Cogs::Core::VideoCaptureRenderer::videoCaptureSystem = nullptr

Definition at line 18 of file VideoCaptureRenderer.h.


The documentation for this class was generated from the following files: