Interactive Mandelbrot viewer with Qt and OpenGL.
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
410 B

3 years ago
#include "../headers/Mandelbrot.h"
3 years ago
void Mandelbrot::init() {
3 years ago
initializeOpenGLFunctions();
}
void Mandelbrot::draw(GLuint vao, int vertCount, QOpenGLShaderProgram& shader) {
shader.bind();
glBindVertexArray(vao);
glDrawArrays(GL_QUADS, 0, vertCount);
glBindVertexArray(0);
3 years ago
}
void Mandelbrot::zoom(double delta) {
3 years ago
scale *= delta;
}
3 years ago
3 years ago
void Mandelbrot::setIterations(int value) {
iterations = value;
3 years ago
}
3 years ago