2021-12-07 13:47:42 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QRect>
|
|
|
|
|
#include <QImage>
|
|
|
|
|
|
|
|
|
|
class QWidget;
|
|
|
|
|
|
|
|
|
|
class RendererCommon
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
RendererCommon();
|
|
|
|
|
|
|
|
|
|
void onResize(int width, int height);
|
|
|
|
|
protected:
|
|
|
|
|
void onPaint(QPaintDevice* device);
|
|
|
|
|
|
2021-12-21 16:38:13 +06:00
|
|
|
QImage image{QSize(2048, 2048), QImage::Format_RGB32};
|
2021-12-07 13:47:42 +01:00
|
|
|
QRect source, destination;
|
|
|
|
|
};
|