feat: points and pointcollection

This commit is contained in:
DarthMooMancer
2025-09-10 18:42:07 -04:00
parent 4c1d4d5185
commit e64017f556
8 changed files with 90 additions and 10 deletions
+6 -3
View File
@@ -2,17 +2,20 @@
#include <thread>
#include "input.hpp"
#include "window.hpp"
#include "elements.hpp"
int main() {
Input input;
Window window;
PointCollection collection;
bool running = true;
std::thread input_thread(&Input::get_input, &input, std::ref(running));
std::thread input_thread(&Input::get_input, &input, std::ref(running), std::ref(collection));
collection.m_point_list.push_back(Point());
window.m_board[0][0] = 4;
while (running) {
window.draw_window();
collection.move();
window.draw_window(collection);
}
input_thread.join();