Cogs.Core
TerrainRenderer.h
1#pragma once
2
3#include "Renderer/IRenderer.h"
4
5#include "Rendering/IGraphicsDevice.h"
6
7namespace Cogs
8{
9 namespace Core
10 {
12 {
13 public:
15
16 void initialize(Context * context, IGraphicsDevice * device) override;
17 void handleEvent(uint32_t eventId, const DrawContext * renderingContext) override;
18
19 void generateCommands(const RenderTaskContext * renderingContext, RenderList * renderList) override;
20
21 void preRender(struct TerrainComponent & terrain, const DrawContext * renderingContext);
22 void postRender(struct TerrainComponent & terrain, const DrawContext * renderingContext);
23
24 IGraphicsDevice * device;
25 Context * context;
26 class TerrainSystem * terrainSystem;
27 };
28 }
29}
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
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.
Represents a graphics device used to manage graphics resources and issue drawing commands.
Contains all Cogs related functionality.
Definition: FieldSetter.h:23