Go to the source code of this file.
|
using | MR::FilesLoadedCallback = std::function<void(const std::vector<std::shared_ptr<Object>>& objs,const std::string& errors, const std::string& warnings)> |
|
◆ ENQUEUE_VIEWER_METHOD
#define ENQUEUE_VIEWER_METHOD |
( |
| NAME, |
|
|
| METHOD ) |
Value:
MR::getViewerInstance() . METHOD (); \
} )
MRVIEWER_API void emplaceEvent(std::string name, ViewerEventCallback cb, bool skipable=false)
MRVIEWER_API Viewer & getViewerInstance()
returns global instance of Viewer class
helper macros to add an MR::Viewer
method call to the event queue
◆ ENQUEUE_VIEWER_METHOD_ARGS
#define ENQUEUE_VIEWER_METHOD_ARGS |
( |
| NAME, |
|
|
| METHOD, |
|
|
| ... ) |
Value:
MR::getViewerInstance() . METHOD ( __VA_ARGS__ ); \
} )
◆ ENQUEUE_VIEWER_METHOD_ARGS_SKIPABLE
#define ENQUEUE_VIEWER_METHOD_ARGS_SKIPABLE |
( |
| NAME, |
|
|
| METHOD, |
|
|
| ... ) |
Value:
MR::getViewerInstance() . METHOD ( __VA_ARGS__ ); \
}, true )