Cogs.Core
DebugGeometryRenderers.h
1#pragma once
2
3#include "Resources/Resources.h"
4#include "Rendering/IGraphicsDevice.h"
5
6#include <glm/fwd.hpp>
7
8namespace Cogs::Core
9{
10 struct RenderTaskContext;
11 struct DrawContext;
12 struct RenderItem;
13 class Context;
14
15 COGSCORE_DLL_API MaterialInstanceHandle getDefaultMaterialInstance(Context* context);
16
17 COGSCORE_DLL_API void drawUnitWireBox(RenderTaskContext * taskContext, DrawContext * drawContext, const RenderItem * item, const glm::mat4& M, unsigned color);
18
19 COGSCORE_DLL_API void drawOneOneWireBox(RenderTaskContext * taskContext, DrawContext * drawContext, const RenderItem * item, const glm::mat4& M, unsigned color);
20
21 COGSCORE_DLL_API void drawCoordSys(RenderTaskContext * taskContext, DrawContext * drawContext, const RenderItem * item, const glm::mat4& M, bool overlay=false);
22
24 {
25 void initialize(class Renderer* renderer, IGraphicsDevice * device);
26 void cleanup();
27 Cogs::EffectHandle effectHandle;
28 Cogs::InputLayoutHandle inputLayoutHandle;
29 Cogs::BufferHandle constantBuffer;
30 Cogs::VertexBufferHandle coordSysVertices;
31 Cogs::VertexBufferHandle unitVertices;
32 Cogs::VertexBufferHandle oneOneVertices;
33 Cogs::IndexBufferHandle edgeIndices;
34 MaterialInstanceHandle defaultMaterialInstance;
35 };
36}
Core renderer system.
Definition: Renderer.h:28
Represents a graphics device used to manage graphics resources and issue drawing commands.
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....