30 if (!engine->MeetsRequirements())
32 LogError(
"OpenGL 4.3 or later is required.");
33 parameters.engine =
nullptr;
34 parameters.factory =
nullptr;
35 parameters.created =
false;
39 if (engine->GetDevice())
41 parameters.engine = engine;
42 parameters.factory = std::make_shared<GLSLProgramFactory>();
43 parameters.created =
true;
47 LogError(
"Cannot create graphics engine.");
48 parameters.engine =
nullptr;
49 parameters.factory =
nullptr;
50 parameters.created =
false;
virtual void CreateEngineAndProgramFactory(MSWWindow::Parameters ¶meters) override
#define LogError(message)
unsigned int deviceCreationFlags
GTE_IMPEXP WindowSystem TheWindowSystem