21 lines
526 B
C++
21 lines
526 B
C++
#pragma once
|
|
|
|
#include "renderer.hpp"
|
|
|
|
#include <filesystem>
|
|
#include <fstream>
|
|
|
|
class SvgRenderer : public Renderer
|
|
{
|
|
public:
|
|
SvgRenderer(const std::filesystem::path& path, size_t width, size_t height);
|
|
|
|
void DrawLine(const math::Vector& p0, const math::Vector& p1) override;
|
|
void DrawRectangle(const math::Vector& pos, const math::Vector& size, float angle) override;
|
|
void DrawCircle(const math::Vector& center, float radius) override;
|
|
|
|
~SvgRenderer() override;
|
|
|
|
private:
|
|
std::ofstream m_file;
|
|
}; |