-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdummy_renderer_api.hpp
More file actions
44 lines (35 loc) · 1.62 KB
/
dummy_renderer_api.hpp
File metadata and controls
44 lines (35 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef DUMMY_RENDERER_API_H
#define DUMMY_RENDERER_API_H
#include "opengl/gl_shader.hpp"
#include "rendering/renderer_api.hpp"
#include "things/resources/image.hpp"
class DummyRendererAPI final : public RendererAPI
{
void Init() final {}
void Shutdown() final {}
void SetViewport(Farg<Position2D>, Farg<Size2D>) final {}
void SetViewport(int, int, int, int) final {}
void SetClearColor(Farg<ColorRGBA>) final {}
void SetLineWidth(float) final {}
void SetFramebufferSRGB(bool) const final {}
void SetWireframe(bool) const final {}
void SetBlend(bool) const final {}
void SetDepthMask(bool) const final {}
ColorRGBA GetClearColor() final { return {}; }
float GetLineWidth() final { return 0; }
bool GetWireframe() const final { return false; }
bool GetBlend() const final { return false; }
Shared<Image> GetFullScreenshot() const final { return MakeShared<Image>(); }
void SetLight_TempBlinnPhongSolution(Shared<Light3D>) final {}
void BindFramebuffer(Shared<FrameBuffer>) const final {}
bool BindTexture(Shared<Texture>, uint) const final { return false; }
bool BindTexture(Shared<TextureBuffer>, uint) const final { return false; }
void UnbindTexture(texture_units) const final {}
ID AddShader(Shared<Shader>, ID) final { return ID::Invalid; }
Shared<Shader> GetShader(ID) final { return MakeShared<GLShader>(); }
Error RemoveShader(ID) final { return FAILED; }
void DrawText(Sarg, Shared<Font>, glm::vec2, Farg<glm::vec2>) final {}
void DrawIndexed(Shared<VertexArray>, uint, uint) final {}
void Clear() final {}
};
#endif // DUMMY_RENDERER_API_H