Set up event browser QTreeWidget and allow browsing through the frame

This commit is contained in:
baldurk
2015-03-28 13:56:16 +00:00
parent a96167a110
commit bb137371e3
8 changed files with 295 additions and 22 deletions
-5
View File
@@ -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);
}