Readd font support (not workign yet)

This commit is contained in:
2026-03-22 21:50:53 +01:00
parent b49c0bd3dc
commit 4777c85f9a
13 changed files with 427 additions and 19 deletions
+4
View File
@@ -40,6 +40,7 @@ class PD_API GfxDriver : public DriverInterface {
virtual void DeleteTexture(const Li::Texture& tex) {}
virtual void Draw(const Pool<Li::Command>& commands) {}
Li::Texture::Ptr GetWhiteTexture() { return &pWhite; }
PDBackendFlags GetFlags() { return Flags; }
protected:
virtual void SysDeinit() {}
@@ -62,6 +63,7 @@ class PD_API GfxDriver : public DriverInterface {
ivec2 ViewPort;
std::unordered_map<TextureID, Li::Texture> pTextureRegestry;
Li::Texture pWhite;
PDBackendFlags Flags = 0;
};
struct DefaultGfxConfig {
@@ -166,6 +168,8 @@ class PD_API Gfx {
return driver->GetWhiteTexture();
}
static PDBackendFlags GetFlags() { return driver->GetFlags(); }
static const char* GetDriverName() { return driver->GetName(); }
private: