first commit

This commit is contained in:
2026-06-05 11:45:04 +03:00
commit b457544071
29 changed files with 1725 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
#pragma once
#include <vector>
#include <ncurses.h>
#include "Size.h"
#include "Vector2.h"
class PaintDevice
{
public:
PaintDevice();
~PaintDevice();
bool ready() const;
void resize(const Size& size);
void clear();
void set_char(
const Vector2& position,
wchar_t c
);
wchar_t get_char(
const Vector2& position
);
void render();
private:
std::vector<std::vector<wchar_t>> m_Buffer;
Size m_Size;
bool m_Ready = false;
};