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::VertexFormatHandle vertexFormat;
31 Cogs::BufferHandle constantBuffer;
32 Cogs::VertexBufferHandle coordSysVertices;
33 Cogs::VertexBufferHandle unitVertices;
34 Cogs::VertexBufferHandle oneOneVertices;
35 Cogs::IndexBufferHandle edgeIndices;
36 MaterialInstanceHandle defaultMaterialInstance;
37 };
38}
Core renderer system.
Definition: Renderer.h:29
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....
ResourceStatus
Status of an asynchronously loaded resource, such as an effect or a pipeline.
Definition: Common.h:198
@ Pending
The resource is still loading.