Minecraft Community Edition
0.1.0
Loading...
Searching...
No Matches
GraphicsContext.hpp
1
#pragma once
2
#include "EASTL/unique_ptr.h"
3
4
namespace
sf {
5
class
Window;
6
}
7
8
namespace
mce {
9
class
Renderer
;
10
11
class
GraphicsContext
{
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
}
mce::GraphicsContext
Definition
GraphicsContext.hpp:11
mce::Renderer
Definition
Renderer.hpp:4
Graphics
GraphicsContext.hpp
Generated by
1.16.1