cpp_drawing/contexts/drawing_context.hpp
2025-09-26 11:00:11 +02:00

15 lines
398 B
C++

#pragma once
#include "math/vector.hpp"
class DrawingContext
{
public:
virtual void DrawLine(const math::Vector& p0, const math::Vector& p1) = 0;
virtual void DrawRectangle(const math::Vector& pos, const math::Vector& size, float angle) = 0;
virtual void DrawCircle(const math::Vector& center, float radius) = 0;
virtual void Flush() = 0;
virtual ~DrawingContext() = 0;
};