comparison Applications/Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp @ 1591:5887a4f8594b

moving platform-specific files out of the "OrthancStone" folder
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 23 Oct 2020 13:15:03 +0200
parents 92fca2b3ba3d
children 4fb8fdf03314
comparison
equal deleted inserted replaced
1590:7b963bccafef 1591:5887a4f8594b
26 #include "../../../../OrthancStone/Sources/Loaders/GenericLoadersContext.h" 26 #include "../../../../OrthancStone/Sources/Loaders/GenericLoadersContext.h"
27 #include "../../../../OrthancStone/Sources/StoneEnumerations.h" 27 #include "../../../../OrthancStone/Sources/StoneEnumerations.h"
28 #include "../../../../OrthancStone/Sources/StoneException.h" 28 #include "../../../../OrthancStone/Sources/StoneException.h"
29 #include "../../../../OrthancStone/Sources/StoneInitialization.h" 29 #include "../../../../OrthancStone/Sources/StoneInitialization.h"
30 #include "../../../../OrthancStone/Sources/Viewport/DefaultViewportInteractor.h" 30 #include "../../../../OrthancStone/Sources/Viewport/DefaultViewportInteractor.h"
31 #include "../../../../OrthancStone/Sources/Viewport/SdlViewport.h" 31 #include "../../../Platforms/Sdl/SdlViewport.h"
32 32
33 #include <Compatibility.h> // For std::unique_ptr<> 33 #include <Compatibility.h> // For std::unique_ptr<>
34 #include <OrthancException.h> 34 #include <OrthancException.h>
35 35
36 #include <boost/program_options.hpp> 36 #include <boost/program_options.hpp>
108 int main(int argc, char* argv[]) 108 int main(int argc, char* argv[])
109 { 109 {
110 try 110 try
111 { 111 {
112 OrthancStone::StoneInitialize(); 112 OrthancStone::StoneInitialize();
113 113 OrthancStone::SdlWindow::GlobalInitialize();
114
114 ProcessOptions(argc, argv); 115 ProcessOptions(argc, argv);
115 116
116 //Orthanc::Logging::EnableInfoLevel(true); 117 //Orthanc::Logging::EnableInfoLevel(true);
117 //Orthanc::Logging::EnableTraceLevel(true); 118 //Orthanc::Logging::EnableTraceLevel(true);
118 119
250 } 251 }
251 context.StopOracle(); 252 context.StopOracle();
252 } 253 }
253 } 254 }
254 255
256 OrthancStone::SdlWindow::GlobalFinalize();
255 OrthancStone::StoneFinalize(); 257 OrthancStone::StoneFinalize();
256 return 0; 258 return 0;
257 } 259 }
258 catch (Orthanc::OrthancException& e) 260 catch (Orthanc::OrthancException& e)
259 { 261 {