You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
386 B
24 lines
386 B
|
|
#pragma once
|
|
|
|
#include <QVector2D>
|
|
#include <QOpenGLExtraFunctions>
|
|
|
|
class Mandelbrot : public QObject, protected QOpenGLExtraFunctions {
|
|
Q_OBJECT
|
|
public:
|
|
void init();
|
|
void draw();
|
|
void zoom(double);
|
|
public slots:
|
|
void setIterations(int);
|
|
private:
|
|
static float* genVertices();
|
|
GLuint createVAO();
|
|
GLuint vao;
|
|
int iterations = 0;
|
|
double scale = 1;
|
|
QVector2D translation;
|
|
};
|
|
|
|
|
|
|