Mercurial > hg > orthanc-stone
comparison Applications/Samples/SampleApplicationContext.h @ 222:84844649a8fd am
continued: reusable applications
author | am@osimis.io |
---|---|
date | Tue, 12 Jun 2018 17:21:15 +0200 |
parents | d7b2590744f8 |
children | ce4405d98b92 |
comparison
equal
deleted
inserted
replaced
221:d7b2590744f8 | 222:84844649a8fd |
---|---|
32 #include <boost/thread.hpp> | 32 #include <boost/thread.hpp> |
33 | 33 |
34 | 34 |
35 namespace OrthancStone | 35 namespace OrthancStone |
36 { | 36 { |
37 class SampleApplicationContext : public BasicApplicationContext | 37 |
38 #if ORTHANC_ENABLE_SDL | |
39 #include "../Sdl/BasicSdlApplicationContext.h" | |
40 typedef BasicSdlApplicationContext BasicApplicationContext_; | |
41 #else | |
42 #include "../Wasm/BasicWasmApplicationContext.h" | |
43 typedef BasicWasmApplicationContext BasicApplicationContext_; | |
44 #endif | |
45 | |
46 class SampleApplicationContext : public BasicApplicationContext_ | |
38 { | 47 { |
39 private: | 48 private: |
40 typedef std::list<ISlicedVolume*> SlicedVolumes; // this is actually used by the samples and shall be moved to a SampleApplicationContext | 49 typedef std::list<ISlicedVolume*> SlicedVolumes; // this is actually used by the samples and shall be moved to a SampleApplicationContext |
41 typedef std::list<IVolumeLoader*> VolumeLoaders; | 50 typedef std::list<IVolumeLoader*> VolumeLoaders; |
42 typedef std::list<IWorldSceneInteractor*> Interactors; | 51 typedef std::list<IWorldSceneInteractor*> Interactors; |