3#include <Covellite/Api/Window.hpp>
4#include <alicorn/std/string.hpp>
5#include <alicorn/patterns/factory.hpp>
6#include "Renderer/IGraphicApi.hpp"
8using namespace covellite::api;
10 auto Window::GetRenderers(
void) -> ::std::vector<String_t>
20 auto Window::MakeImpl(
const String_t & _Api,
23 using namespace ::alicorn::modules::patterns;
25 if (_Api != uT(
"Auto"))
27 return factory::make_unique<renderer::IGraphicApi>(_Api, _Data);
30 for (
const auto & Name : GetRenderers())
34 return factory::make_unique<renderer::IGraphicApi>(Name, _Data);
36 catch (const ::std::exception & _Ex)
41 LOGGER(Warning) << uT(
"Create graphics API ") << Name <<
" error: "
46 throw STD_EXCEPTION <<
"Unknown Api: " << _Api;
Класс для передачи значений настроек программы реализации рендера.
Definition IGraphicApi.hpp:62