Debug UI tunes

This commit is contained in:
IlushaShurupov 2023-08-20 20:20:50 +03:00
parent b959afe8c2
commit c00750c95a
7 changed files with 30970 additions and 6 deletions

View file

@ -38,8 +38,17 @@ namespace tp {
void proc();
void draw();
void setStyle();
public:
// TODO : API
void drawDebugInfoWindow();
halnf getFontSize() const;
halnf getUIScale() const;
void setDPMM(ualni);
void setFontSize(ualni);
void setUIScale(ualni);
};
class Canvas {
@ -69,6 +78,9 @@ namespace tp {
void draw();
void proc();
public:
GUI& getDebugGui() { return mGui; }
private:
GUI mGui;
GL mGl;

View file

@ -18,6 +18,12 @@ namespace tp {
};
};
struct Monitor {
ualni refreshRate = 60;
Vec2F pixelSize;
Vec2F mmSize;
};
private:
Window(int width, int height, const char* title);
~Window();
@ -33,10 +39,14 @@ namespace tp {
auto getContext() -> Context*;
Graphics& getGraphics() { return mGraphics; }
[[nodiscard]] const Monitor& getMonitor() const { return mMonitor; }
private:
Context* mContext;
Graphics mGraphics;
Buffer<Event> mEvents;
Monitor mMonitor;
};
}