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

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
 
- 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

EditorRenderTask editorTask
 

Detailed Description

Definition at line 22 of file EditorExtension.cpp.

Member Function Documentation

◆ generateCommands()

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

Implements Cogs::Core::IRendererExtension.

Definition at line 37 of file EditorExtension.cpp.

◆ handleEvent()

void Cogs::Core::EditorRenderExtension::handleEvent ( uint32_t  eventId,
const DrawContext renderingContext 
)
inlineoverridevirtual

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 29 of file EditorExtension.cpp.

References Cogs::Core::RenderingEvent::RenderGui.

◆ initialize()

void Cogs::Core::EditorRenderExtension::initialize ( Context context,
IGraphicsDevice device 
)
inlineoverridevirtual

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 24 of file EditorExtension.cpp.

Member Data Documentation

◆ editorTask

EditorRenderTask Cogs::Core::EditorRenderExtension::editorTask

Definition at line 41 of file EditorExtension.cpp.


The documentation for this struct was generated from the following file: