Cogs.Core
VectorFieldRenderer.h
1#pragma once
2#include "Rendering/IGraphicsDevice.h"
3#include "Renderer/IRenderer.h"
4
5namespace Cogs::Core::VectorField
6{
8 {
9 public:
10 void initialize(Cogs::Core::Context *context, IGraphicsDevice *device) override;
11 void handleEvent(uint32_t eventId, const DrawContext *renderingContext) override;
12 void generateCommands(const RenderTaskContext *renderingContext, RenderList *renderList) override;
13
14 void postRender(struct VectorFieldComponent &component, const DrawContext *renderingContext);
15
16 Context *context;
17 IGraphicsDevice *device;
18 struct VectorFieldSystem *vectorFieldSystem;
19 };
20}
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
Represents a graphics device used to manage graphics resources and issue drawing commands.
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.