Cogs.Core
SeaCurrentsRenderer.h
1#pragma once
2
3#include "Renderer/IRenderer.h"
4
5namespace Cogs {
6 namespace Core {
7 class SeaCurrentsSystem;
8
10 public:
11 Context* mContext = nullptr;
12 IGraphicsDevice* mDevice = nullptr;
13 SeaCurrentsSystem* mSeaCurrentsSystem = nullptr;
14 IndexBufferHandle mIndices;
15
16 virtual void initialize(Context* context, IGraphicsDevice* device) override;
17 virtual void handleEvent(uint32_t eventId, const DrawContext* renderingContext) override;
18 virtual void generateCommands(const RenderTaskContext *renderingContext, RenderList* renderList) override;
19 };
20 }
21}
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
Defines an extension to the renderer, capable of doing custom rendering.
Definition: IRenderer.h:123
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.
The sea currents system manages and displays sea currents per the S-111 specification.
Represents a graphics device used to manage graphics resources and issue drawing commands.
Contains all Cogs related functionality.
Definition: FieldSetter.h:23