MeshLib Documentation
Loading...
Searching...
No Matches
MRFrameRedrawRequest.h
Go to the documentation of this file.
1#pragma once
2#include "exports.h"
3#include "MRAsyncTimer.h"
4
5namespace MR
6{
7
9class MRVIEWER_CLASS FrameRedrawRequest
10{
11public:
12 MRVIEWER_API void reset();
13 MRVIEWER_API void requestFrame( size_t millisecondsInterval = 100 );
14private:
15#ifdef __EMSCRIPTEN__
16 std::atomic<bool> frameRequested_{ false }; // not to order too often
17#else
18 AsyncRequest asyncRequest_;
19#endif
20};
21
22}
Definition MRAsyncTimer.h:53
class for requesting frame redraw in some time
Definition MRFrameRedrawRequest.h:10
MRVIEWER_API void reset()
MRVIEWER_API void requestFrame(size_t millisecondsInterval=100)
Definition MRCameraOrientationPlugin.h:8