|
Cogs.Core
|
Public Member Functions | |
| virtual void | initialize (Context *context, IGraphicsDevice *device) override |
| Initialize the extension using the given context and device. | |
| virtual void | handleEvent (uint32_t eventId, const DrawContext *renderingContext) override |
| Called when rendering events occur. | |
| virtual void | generateCommands (const RenderTaskContext *renderingContext, RenderList *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 | |
| Context * | mContext = nullptr |
| IGraphicsDevice * | mDevice = nullptr |
| SeaCurrentsSystem * | mSeaCurrentsSystem = nullptr |
| IndexBufferHandle | mIndices |
Definition at line 9 of file SeaCurrentsRenderer.h.
|
overridevirtual |
Implements Cogs::Core::IRendererExtension.
Definition at line 111 of file SeaCurrentsRenderer.cpp.
|
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 108 of file SeaCurrentsRenderer.cpp.
|
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 91 of file SeaCurrentsRenderer.cpp.
References Cogs::IGraphicsDevice::getBuffers(), and Cogs::IBuffers::loadIndexBuffer().
| Context* Cogs::Core::SeaCurrentsRenderer::mContext = nullptr |
Definition at line 11 of file SeaCurrentsRenderer.h.
| IGraphicsDevice* Cogs::Core::SeaCurrentsRenderer::mDevice = nullptr |
Definition at line 12 of file SeaCurrentsRenderer.h.
| IndexBufferHandle Cogs::Core::SeaCurrentsRenderer::mIndices |
Definition at line 14 of file SeaCurrentsRenderer.h.
| SeaCurrentsSystem* Cogs::Core::SeaCurrentsRenderer::mSeaCurrentsSystem = nullptr |
Definition at line 13 of file SeaCurrentsRenderer.h.