Add Os Bridge into test framework

This commit is contained in:
2026-09-06 16:16:25 +02:00
committed by tobid7
parent 9606fd819d
commit fd7e9b5f4e
10 changed files with 357 additions and 242 deletions
+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include <os-ctx.hpp>
namespace PD {
class DesktopOS : public PD::OsCtx {
public:
DesktopOS(Driver d = Driver::OpenGL3) : PD::OsCtx(d) {}
~DesktopOS() {}
void Init() override;
void Deinit() override;
bool Mainloop() override;
void ClearViewPort() override;
void SwapBuffers() override;
private:
struct Impl;
Impl* impl = nullptr;
};
} // namespace PD
+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include <os-ctx.hpp>
namespace PD {
class HorizonCtr : public PD::OsCtx {
public:
HorizonCtr(Driver d = Driver::Citro3D) : PD::OsCtx(d) {}
~HorizonCtr() {}
void Init() override;
void Deinit() override;
bool Mainloop() override;
void ClearViewPort() override;
void SwapBuffers() override;
private:
struct Impl;
Impl* impl = nullptr;
};
} // namespace PD
+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include <os-ctx.hpp>
namespace PD {
class HorizonNX : public PD::OsCtx {
public:
HorizonNX(Driver d = Driver::OpenGL3) : PD::OsCtx(d) {}
~HorizonNX() {}
void Init() override;
void Deinit() override;
bool Mainloop() override;
void ClearViewPort() override;
void SwapBuffers() override;
private:
struct Impl;
Impl* impl = nullptr;
};
} // namespace PD