Mercurial > hg > dmlib
view editor/edview.h @ 1896:f80b2dc77c30
Work begins on IFF ILBM/PBM image writer. It is pretty broken, some things
will not work and some things are hardcoded. The ByteRun1 compression
implementation is somewhat inefficient. Interleaved files do not work yet.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 26 Jun 2018 03:13:38 +0300 |
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