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.

43 lines
711 B

3 years ago
#include <iostream>
#include "../headers/OutputWidget.h"
3 years ago
void OutputWidget::initializeGL() {
3 years ago
initializeOpenGLFunctions();
std::cout << "Initialize GL" << std::endl;
auto format = this->format();
std::cout << "OpenGL version: " <<
format.majorVersion() << "." << format.minorVersion()
<< std::endl;
::glClearColor(0.5f, 0.5f, 0.5f, 1.0f);
3 years ago
}
void OutputWidget::paintGL() {
}
void OutputWidget::resizeGL(int w, int h) {
}
void OutputWidget::wheelEvent(QWheelEvent *e) {
}
void OutputWidget::mouseMoveEvent(QMouseEvent *e) {
}
void OutputWidget::mousePressEvent(QMouseEvent *e) {
}
void OutputWidget::mouseReleaseEvent(QMouseEvent *e) {
}
void OutputWidget::keyPressEvent(QKeyEvent *e) {
}