Own legacy platform services on Linux

This commit is contained in:
2026-06-17 10:07:24 +02:00
parent f98e4f4889
commit c225529cbf
5 changed files with 24 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
#include "platform_legacy/legacy_platform_services.h"
#include "platform_legacy/legacy_platform_state.h"
#include <memory>
#include "legacy_ui_gl_dispatch.h"
#include "log.h"
#include "platform_apple/apple_platform_services.h"
@@ -552,4 +554,9 @@ PlatformServices& platform_services()
static LegacyPlatformServices services;
return services;
}
std::unique_ptr<PlatformServices> create_platform_services()
{
return std::make_unique<LegacyPlatformServices>();
}
}

View File

@@ -1,9 +1,12 @@
#pragma once
#include <memory>
#include "platform_api/platform_services.h"
namespace pp::platform::legacy {
[[nodiscard]] PlatformServices& platform_services();
[[nodiscard]] std::unique_ptr<PlatformServices> create_platform_services();
}