Own legacy platform services on Linux
This commit is contained in:
@@ -55,6 +55,7 @@ void error_log(int code, const char * s)
|
||||
|
||||
int main(int argc, char** args)
|
||||
{
|
||||
auto platform_services = pp::platform::legacy::create_platform_services();
|
||||
GLFWwindow* wnd = nullptr;
|
||||
glfwSetErrorCallback(error_log);
|
||||
if (!glfwInit())
|
||||
@@ -121,7 +122,7 @@ int main(int argc, char** args)
|
||||
|
||||
App::I = &app;
|
||||
pp::platform::legacy::set_legacy_glfw_window(wnd);
|
||||
app.set_platform_services(&pp::platform::legacy::platform_services());
|
||||
app.set_platform_services(platform_services.get());
|
||||
app.initLog();
|
||||
app.create();
|
||||
app.width = 800;
|
||||
|
||||
Reference in New Issue
Block a user