#pragma once #include #include "utils.h" #include #include #include #include using namespace Util; class Mandelbrotc { public: Vec2mp f, t; uint8_t thread_count; std::vector threads; Vec2i s; //std::vector> screen; uint8_t **screen; bool done; uint32_t max_iter; Mandelbrotc(Vec2mp const &f, Vec2mp const &t, Vec2i const &s, uint32_t mi); void start_threads(bool first); void stop_threads(); uint32_t mandelbrot(const Vec2mp &n); void calc(const uint8_t tid); };