comparison Applications/Samples/Sdl/RtViewer/RtViewerSdl.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 4c9e68291467
comparison
equal deleted inserted replaced
1590:7b963bccafef 1591:5887a4f8594b
25 #include <EmbeddedResources.h> 25 #include <EmbeddedResources.h>
26 26
27 // Stone of Orthanc includes 27 // Stone of Orthanc includes
28 #include "../../../../OrthancStone/Sources/Loaders/GenericLoadersContext.h" 28 #include "../../../../OrthancStone/Sources/Loaders/GenericLoadersContext.h"
29 #include "../../../../OrthancStone/Sources/OpenGL/OpenGLIncludes.h" 29 #include "../../../../OrthancStone/Sources/OpenGL/OpenGLIncludes.h"
30 #include "../../../../OrthancStone/Sources/OpenGL/SdlOpenGLContext.h"
31 #include "../../../../OrthancStone/Sources/StoneException.h" 30 #include "../../../../OrthancStone/Sources/StoneException.h"
32 #include "../../../../OrthancStone/Sources/StoneInitialization.h" 31 #include "../../../../OrthancStone/Sources/StoneInitialization.h"
32 #include "../../../Platforms/Sdl/SdlOpenGLContext.h"
33 33
34 // Orthanc (a.o. for screenshot capture) 34 // Orthanc (a.o. for screenshot capture)
35 #include <Compatibility.h> // For std::unique_ptr<> 35 #include <Compatibility.h> // For std::unique_ptr<>
36 #include <Images/Image.h> 36 #include <Images/Image.h>
37 #include <Images/ImageProcessing.h> 37 #include <Images/ImageProcessing.h>
449 int main(int argc, char* argv[]) 449 int main(int argc, char* argv[])
450 { 450 {
451 using namespace OrthancStone; 451 using namespace OrthancStone;
452 452
453 StoneInitialize(); 453 StoneInitialize();
454 OrthancStone::SdlWindow::GlobalInitialize();
454 455
455 try 456 try
456 { 457 {
457 boost::shared_ptr<RtViewerApp> app = RtViewerApp::Create(); 458 boost::shared_ptr<RtViewerApp> app = RtViewerApp::Create();
458 g_app = app; 459 g_app = app;
460 } 461 }
461 catch (Orthanc::OrthancException& e) 462 catch (Orthanc::OrthancException& e)
462 { 463 {
463 LOG(ERROR) << "EXCEPTION: " << e.What(); 464 LOG(ERROR) << "EXCEPTION: " << e.What();
464 } 465 }
465 466
467 OrthancStone::SdlWindow::GlobalFinalize();
466 StoneFinalize(); 468 StoneFinalize();
467 469
468 return 0; 470 return 0;
469 } 471 }
470 472