3dobj-renderer/opglwidget.h

19 lines
353 B
C
Raw Normal View History

2023-05-02 13:02:56 +05:00
#include <QtWidgets/QOpenGLWidget>
2023-05-03 15:57:59 +05:00
#include "obj.h"
2023-05-02 13:02:56 +05:00
class OPGLWidget : public QOpenGLWidget
{
public:
OPGLWidget(QWidget *parent) : QOpenGLWidget(parent) {}
2023-05-02 14:16:05 +05:00
protected:
void paintGL();
void initializeGL();
void resizeGL(int w, int h);
void reorient();
2023-05-03 13:19:03 +05:00
int mtl_idx = -1;
float loc[3] = {0, 0, 10};
float f[3] = {0, 0, -1};
2023-05-03 15:57:59 +05:00
ObjectLoader obj;
2023-05-02 13:02:56 +05:00
};