3dobj-renderer/opglwidget.h
2023-05-03 13:19:03 +05:00

15 lines
294 B
C++

#include <QtWidgets/QOpenGLWidget>
class OPGLWidget : public QOpenGLWidget
{
public:
OPGLWidget(QWidget *parent) : QOpenGLWidget(parent) {}
protected:
void paintGL();
void initializeGL();
void resizeGL(int w, int h);
void reorient();
int mtl_idx = -1;
float loc[3] = {-10, 0, -10};
};