MeshLib Documentation
Loading...
Searching...
No Matches
MRDemoPlugin.h
Go to the documentation of this file.
1#pragma once
2#include "MRViewerPlugin.h"
3#include "MRViewer.h"
4#include "exports.h"
6#include <memory>
7
8namespace MR
9{
10
11class ObjectMesh;
12
13class MRVIEWER_CLASS DemoPlugin : public MR::ViewerPlugin, public MultiListener<PreDrawListener,DrawListener,InterruptCloseListener>
14{
15public:
16 virtual void MRVIEWER_API init( Viewer* _viewer ) override;
17 virtual void MRVIEWER_API shutdown() override;
18
19private:
20 virtual void draw_() override;
21 virtual void preDraw_() override;
22 virtual bool interruptClose_() override;
23
24 std::unique_ptr<ObjectMesh> demoSphere_;
25
26 bool shouldClose_{false};
27 bool showCloseModal_{false};
28
29};
30
31MRVIEWER_API extern DemoPlugin DemoPluginInstance;
32
33} //namespace MR
Definition MRDemoPlugin.h:14
virtual void MRVIEWER_API init(Viewer *_viewer) override
virtual void MRVIEWER_API shutdown() override
Definition MRViewerPlugin.h:27
Definition MRCameraOrientationPlugin.h:8
MRVIEWER_API DemoPlugin DemoPluginInstance
Definition Viewer.dox.py:1
Definition MRViewerEventsListener.h:29