mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-28 12:51:03 +00:00
Set up event browser QTreeWidget and allow browsing through the frame
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
#include "renderdoc_replay.h"
|
||||
|
||||
extern ReplayOutput *out;
|
||||
extern TextureDisplay d;
|
||||
|
||||
CustomPaintWidget::CustomPaintWidget(QWidget *parent) : QWidget(parent)
|
||||
{
|
||||
@@ -18,10 +17,6 @@ CustomPaintWidget::~CustomPaintWidget()
|
||||
|
||||
void CustomPaintWidget::paintEvent(QPaintEvent *e)
|
||||
{
|
||||
static float t = 0.0f;
|
||||
t += 0.01f;
|
||||
d.scale = 1.5f + sinf(t);
|
||||
ReplayOutput_SetTextureDisplay(out, d);
|
||||
ReplayOutput_Display(out);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user