view editor/edview.h @ 2576:812b16ee49db

I had been living under apparent false impression that "realfft.c" on which the FFT implementation in DMLIB was basically copied from was released in public domain at some point, but it could very well be that it never was. Correct license is (or seems to be) GNU GPL. Thus I removing the code from DMLIB, and profusely apologize to the author, Philip Van Baren. It was never my intention to distribute code based on his original work under a more liberal license than originally intended.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 Mar 2022 16:32:50 +0200
parents e2ac08228a0f
children
line wrap: on
line source

#ifndef EDVIEW_H
#define EDVIEW_H

#include <QtOpenGL>
#include <QImage>
#include "dmengine.h"


class QEDGLDemoView : public QGLWidget
{
    Q_OBJECT

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

    QSize minimumSizeHint() const;
    QSize sizeHint() const;

    virtual void setEngineData(DMEngineData *mengine);
    virtual void render(int frameTime);
    void paintEvent(QPaintEvent *);

private:
    void saveGLState();
    void restoreGLState();

protected:
    DMEngineData *engine;
};


class QEDSWDemoView : public QEDGLDemoView
{
    Q_OBJECT

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

    void setEngineData(DMEngineData *mengine);
    void render(int frameTime);
    void paintEvent(QPaintEvent *);

private:
    QImage *img;
};


#endif