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
500 B

#pragma once
#include <QWidget>
3 years ago
#include <QOpenGLFunctions>
#include <QOpenGLWidget>
3 years ago
class OutputWidget : public QOpenGLWidget, protected QOpenGLFunctions {
Q_OBJECT
private:
void initializeGL() override;
void paintGL() override;
void resizeGL(int, int) override;
3 years ago
void wheelEvent(QWheelEvent*) override;
void mouseMoveEvent(QMouseEvent*) override;
void mousePressEvent(QMouseEvent*) override;
void mouseReleaseEvent(QMouseEvent*) override;
void keyPressEvent(QKeyEvent*) override;
};