mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-18 23:03:27 +00:00
28 lines
1.0 KiB
C++
28 lines
1.0 KiB
C++
//
|
|
// Created by orange on 13.03.2026.
|
|
//
|
|
#pragma once
|
|
#include "omath/linear_algebra/vector2.hpp"
|
|
#include "omath/utility/color.hpp"
|
|
|
|
namespace omath::hud
|
|
{
|
|
class HudRendererInterface
|
|
{
|
|
public:
|
|
virtual ~HudRendererInterface() = default;
|
|
virtual void add_line(const Vector2<float>& line_start, const Vector2<float>& line_end, const Color& color,
|
|
float thickness) = 0;
|
|
|
|
virtual void add_polyline(const std::span<const Vector2<float>>& vertexes, float thickness) = 0;
|
|
|
|
virtual void add_filled_polyline(const std::span<const Vector2<float>>& vertexes, float thickness) = 0;
|
|
|
|
virtual void add_rectangle(const Vector2<float>& min, const Vector2<float>& max, const Color& color) = 0;
|
|
|
|
virtual void add_filled_rectangle(const Vector2<float>& min, const Vector2<float>& max, const Color& color) = 0;
|
|
|
|
virtual void add_text(const Vector2<float>& position, const Color& color, const std::string_view& text) = 0;
|
|
};
|
|
} // namespace omath::hud
|