Sat, 14 Dec 2019 22:36:06 +0200
added missing files
#pragma once #include <QOpenGLWidget> #include <QOpenGLFunctions> #include <QQuaternion> #include "main.h" #include "gl/common.h" class PartRenderer : public QOpenGLWidget, protected QOpenGLFunctions { public: PartRenderer(QWidget* parent = nullptr); protected: void initializeGL() override; void resizeGL(int width, int height) override; void paintGL() override; void mouseMoveEvent(QMouseEvent* event) override; private slots: void setRenderStyle(const gl::RenderStyle newStyle); private: QPointF lastMousePosition; bool initialized = false; gl::RenderStyle renderStyle = gl::RenderStyle::Normal; QQuaternion rotation; void initializeLighting(); };