implement zooming

This commit is contained in:
2022-07-09 20:58:17 +02:00
parent 00b4c837d0
commit dd1a608eda
3 changed files with 70 additions and 40 deletions

View File

@ -39,9 +39,15 @@ namespace Mandelbrot {
Vec2mp to;
bool running;
bool mouseDown;
Vec2i m_start;
Vec2i m_end;
Graphics(int w, int h, std::string title);
void plot(Mandelbrotc const &m);
void mainLoop();
void drawPoint(const Vec2i &pos, const rgb &col);
void drawSelectionRectangle();
void zoom(Mandelbrotc &m);
};
} // namespace Mandelbrot