OpenGlViewer.h 362 Bytes
Newer Older
Anakin's avatar
Anakin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#pragma once

#include <QOpenGLWidget>
#include <QOpenGLFunctions>

class OpenGlViewer : public QOpenGLWidget, protected QOpenGLFunctions
{
	Q_OBJECT

public:
	OpenGlViewer(QWidget *parent);
	~OpenGlViewer();

protected:
	virtual void initializeGL() override final;
	virtual void resizeGL(int w, int h) override final;
	virtual void paintGL() override final;
};