18 lines
478 B
C++
18 lines
478 B
C++
#pragma once
|
|
#include "math/vector.hpp"
|
|
|
|
/**
|
|
* @brief Renderer interface
|
|
*
|
|
* Represents an inteface for different renderers that can draw basic shapes.
|
|
*/
|
|
class Renderer
|
|
{
|
|
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 ~Renderer() = default;
|
|
};
|