MeshLib C++ Docs
Loading...
Searching...
No Matches
MRViewerPlugin.h
Go to the documentation of this file.
1#pragma once
2
8
9#include "MRViewerInstance.h"
10#include <filesystem>
11#include <vector>
12
13namespace MR
14{
17
18
28
30{
31public:
32 virtual ~ViewerPlugin()
33 {
34 }
35
37 virtual void init( Viewer *_viewer )
38 {
39 viewer = _viewer;
40 }
41
43 virtual void shutdown()
44 {
45 }
46
47protected:
50};
51
52}
Definition MRViewerPlugin.h:30
GLFW-based mesh viewer.
Definition MRViewer.h:69
MRVIEWER_API Viewer & getViewerInstance()
returns global instance of Viewer class
virtual void init(Viewer *_viewer)
This function is called when the viewer is initialized (no mesh will be loaded at this stage)
Definition MRViewerPlugin.h:37
virtual void shutdown()
This function is called before shutdown.
Definition MRViewerPlugin.h:43
Viewer * viewer
Pointer to the main Viewer class.
Definition MRViewerPlugin.h:49
virtual ~ViewerPlugin()
Definition MRViewerPlugin.h:32
only for bindings generation
Definition MRCameraOrientationPlugin.h:8