comparison Applications/Samples/SampleMainSdl.cpp @ 237:b4642964c355 am

SimpleViewer demo running both with SDL and Wasm
author am@osimis.io
date Wed, 20 Jun 2018 09:03:48 +0200
parents ce4405d98b92
children 092db46c6291
comparison
equal deleted inserted replaced
236:f73d722d98c8 237:b4642964c355
16 * 16 *
17 * You should have received a copy of the GNU Affero General Public License 17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **/ 19 **/
20 20
21 21 #include "SampleList.h"
22 // The macro "ORTHANC_STONE_SAMPLE" must be set by the CMake script
23
24 #if ORTHANC_STONE_SAMPLE == 1
25 #include "EmptyApplication.h"
26 typedef OrthancStone::Samples::EmptyApplication Application;
27
28 #elif ORTHANC_STONE_SAMPLE == 2
29 #include "TestPatternApplication.h"
30 typedef OrthancStone::Samples::TestPatternApplication Application;
31
32 #elif ORTHANC_STONE_SAMPLE == 3
33 #include "SingleFrameApplication.h"
34 typedef OrthancStone::Samples::SingleFrameApplication Application;
35
36 #elif ORTHANC_STONE_SAMPLE == 4
37 #include "SingleVolumeApplication.h"
38 typedef OrthancStone::Samples::SingleVolumeApplication Application;
39
40 #elif ORTHANC_STONE_SAMPLE == 5
41 #include "BasicPetCtFusionApplication.h"
42 typedef OrthancStone::Samples::BasicPetCtFusionApplication Application;
43
44 #elif ORTHANC_STONE_SAMPLE == 6
45 #include "SynchronizedSeriesApplication.h"
46 typedef OrthancStone::Samples::SynchronizedSeriesApplication Application;
47
48 #elif ORTHANC_STONE_SAMPLE == 7
49 #include "LayoutPetCtFusionApplication.h"
50 typedef OrthancStone::Samples::LayoutPetCtFusionApplication Application;
51
52 #elif ORTHANC_STONE_SAMPLE == 8
53 #include "SimpleViewerApplication.h"
54 typedef OrthancStone::Samples::SimpleViewerApplication Application;
55
56 #else
57 #error Please set the ORTHANC_STONE_SAMPLE macro
58 #endif
59
60 22
61 int main(int argc, char* argv[]) 23 int main(int argc, char* argv[])
62 { 24 {
63 Application application; 25 Application application;
64 26