feat: points and pointcollection
This commit is contained in:
+6
-3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user