Loading...
Searching...
No Matches
GraphicsContext.hpp
#pragma once
#include "EASTL/unique_ptr.h"
namespace sf {
class Window;
}
namespace mce::gfx {
class Renderer;
class GraphicsContext {
public:
enum class API {
OpenGL,
Vulkan,
};
virtual ~GraphicsContext();
virtual eastl::unique_ptr<Renderer> createRenderer(sf::Window& window) = 0;
static eastl::unique_ptr<GraphicsContext> create(API api);
};
}
mce::gfx::GraphicsContext
Definition GraphicsContext.hpp:11
mce::gfx::Renderer
Definition Renderer.hpp:4