Something went wrong. Try again.
art software for the rest of us
drawing paint image sdl art
Something went wrong. Try again.
C
1234567891011121314151617181920212223#pragma once
#include "Widget.h"#include "../Graphics/Rectangle.h"#include "../Graphics/Text.h"#include <memory>
class DebugOverlay final : public UI::Widget { std::unique_ptr<Text> fpsText; std::unique_ptr<Rectangle> marker; std::string fps = "0";
void RefreshPrimitives();
public: DebugOverlay();
void SetFps(double value); void Measure(UI::Size availableSpace) override; void Arrange(UI::Rect finalBounds) override; void Draw() override;};