dispmap/svpointcloudrenderer.h
2014-07-25 12:32:46 +04:00

25 lines
505 B
C++

#ifndef SVPOINTCLOUDRENDERER_H
#define SVPOINTCLOUDRENDERER_H
#include <QObject>
#include <QtGui/QOpenGLShaderProgram>
#include <QtGui/QOpenGLContext>
class SvPointCloudRenderer : public QObject
{
Q_OBJECT
public:
explicit SvPointCloudRenderer(QObject *parent = 0);
void setViewportSize(const QSize &size) { m_viewportSize = size; }
public slots:
void paint();
private:
QSize m_viewportSize;
qreal m_t;
QOpenGLShaderProgram *m_program;
};
#endif // SVPOINTCLOUDRENDERER_H