mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
23 lines
356 B
C++
23 lines
356 B
C++
#include "CustomPaintWidget.h"
|
|
#include <QPainter>
|
|
|
|
#include "renderdoc_replay.h"
|
|
|
|
extern ReplayOutput *out;
|
|
|
|
CustomPaintWidget::CustomPaintWidget(QWidget *parent) : QWidget(parent)
|
|
{
|
|
setAttribute(Qt::WA_PaintOnScreen);
|
|
}
|
|
|
|
CustomPaintWidget::~CustomPaintWidget()
|
|
{
|
|
|
|
}
|
|
|
|
void CustomPaintWidget::paintEvent(QPaintEvent *e)
|
|
{
|
|
ReplayOutput_Display(out);
|
|
}
|
|
|