Expose ui scaling and orientation

This commit is contained in:
Georg Hagen
2024-07-27 14:30:59 +02:00
parent 6a1a76f4d1
commit eb81c777bf
7 changed files with 45 additions and 43 deletions

View File

@@ -84,6 +84,9 @@ namespace OpenVulkano
[[nodiscard]] virtual uint32_t GetWindowId() const = 0;
virtual void* GetNativeWindowHandle() = 0;
virtual float GetContentScale() const { return 1; }
virtual float GetInterfaceOrientation() const { return 0; }
protected:
static uint32_t CreateWindowId()
{