mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-20 11:01:08 +00:00
Change RenderManager invoke method to be std::function to allow lambdas
This commit is contained in:
1 parent
93dfd014a2
commit
005d1d0875
1 file changed
+3
-1
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "renderdoc_replay.h"
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include <QString>
|
||||
#include <QThread>
|
||||
#include <QMutex>
|
||||
@@ -17,7 +19,7 @@ class RenderManager : public QThread
|
||||
void run();
|
||||
|
||||
public:
|
||||
typedef void (*InvokeMethod)(IReplayRenderer *r);
|
||||
typedef std::function<void(IReplayRenderer*)> InvokeMethod;
|
||||
|
||||
RenderManager();
|
||||
~RenderManager();
|
||||
|
||||
Reference in new issue
Block a user