|
|
@ -15,17 +15,20 @@ public: |
|
|
|
void zoomRelative(int, QVector2D); |
|
|
|
void zoomRelative(int, QVector2D); |
|
|
|
void resizeRelative(QVector2D); |
|
|
|
void resizeRelative(QVector2D); |
|
|
|
bool initShader(); |
|
|
|
bool initShader(); |
|
|
|
|
|
|
|
void initView(QSize); |
|
|
|
public slots: |
|
|
|
public slots: |
|
|
|
void toggleAnimation(); |
|
|
|
void toggleAnimation(); |
|
|
|
void toggleNormalize(); |
|
|
|
void toggleNormalize(); |
|
|
|
private: |
|
|
|
private: |
|
|
|
|
|
|
|
const QVector2D startCenter {-0.66, 0}; |
|
|
|
|
|
|
|
const float startMaxSize = 3; |
|
|
|
|
|
|
|
|
|
|
|
int maxIterations = 0; |
|
|
|
int maxIterations = 0; |
|
|
|
float hueAdd = 0; |
|
|
|
float hueAdd = 0; |
|
|
|
QVector2D origin {-2, -1}; |
|
|
|
QVector2D origin; |
|
|
|
QVector2D size {2, 2}; |
|
|
|
QVector2D size; |
|
|
|
float zoomModifier = 1.05; |
|
|
|
float zoomModifier = 1.05; |
|
|
|
bool normalize = true; |
|
|
|
bool normalize = true; |
|
|
|
|
|
|
|
|
|
|
|
bool animating = true; |
|
|
|
bool animating = true; |
|
|
|
|
|
|
|
|
|
|
|
GLuint vao; |
|
|
|
GLuint vao; |
|
|
|