Minecraft Community Edition 0.1.0
Loading...
Searching...
No Matches
GraphicsContext.hpp
1#pragma once
2#include "EASTL/unique_ptr.h"
3
4namespace sf {
5 class Window;
6}
7
8namespace mce {
9 class Renderer;
10
12 public:
13 enum class API {
14 OpenGL,
15 Vulkan,
16 };
17
18 virtual ~GraphicsContext();
19 virtual eastl::unique_ptr<Renderer> createRenderer(sf::Window& window) = 0;
20
21 static eastl::unique_ptr<GraphicsContext> create(API api);
22 };
23}
Definition GraphicsContext.hpp:11
Definition Renderer.hpp:4