Cogs.Core
|
Public Member Functions | |
void | initialize (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 | |
EditorRenderTask | editorTask |
Definition at line 22 of file EditorExtension.cpp.
|
inlineoverridevirtual |
Implements Cogs::Core::IRendererExtension.
Definition at line 37 of file EditorExtension.cpp.
|
inlineoverridevirtual |
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 29 of file EditorExtension.cpp.
References Cogs::Core::RenderingEvent::RenderGui.
|
inlineoverridevirtual |
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 24 of file EditorExtension.cpp.
EditorRenderTask Cogs::Core::EditorRenderExtension::editorTask |
Definition at line 41 of file EditorExtension.cpp.