comparison Applications/Sdl/BasicSdlApplication.h @ 293:017044be141b am-2

renaming
author am@osimis.io
date Thu, 30 Aug 2018 17:15:22 +0200
parents 5de5699ad570
children
comparison
equal deleted inserted replaced
292:df5011cf903c 293:017044be141b
19 **/ 19 **/
20 20
21 21
22 #pragma once 22 #pragma once
23 23
24 #include "../Generic/BasicNativeApplication.h" 24 #include "../Generic/NativeStoneApplicationRunner.h"
25 25
26 #if ORTHANC_ENABLE_SDL != 1 26 #if ORTHANC_ENABLE_SDL != 1
27 #error this file shall be included only with the ORTHANC_ENABLE_SDL set to 1 27 #error this file shall be included only with the ORTHANC_ENABLE_SDL set to 1
28 #endif 28 #endif
29 29
30 #include <SDL.h> // Necessary to avoid undefined reference to `SDL_main' 30 #include <SDL.h> // Necessary to avoid undefined reference to `SDL_main'
31 31
32 namespace OrthancStone 32 namespace OrthancStone
33 { 33 {
34 class BasicSdlApplication : public BasicNativeApplication 34 class SdlStoneApplicationRunner : public NativeStoneApplicationRunner
35 { 35 {
36 unsigned int width_; 36 unsigned int width_;
37 unsigned int height_; 37 unsigned int height_;
38 bool enableOpenGl_; 38 bool enableOpenGl_;
39 public: 39 public:
40 SdlStoneApplicationRunner(MessageBroker& broker,
41 IStoneApplication& application)
42 : NativeStoneApplicationRunner(broker, application)
43 {
44 }
45
40 virtual void Initialize(); 46 virtual void Initialize();
41 virtual void DeclareCommandLineOptions(boost::program_options::options_description& options); 47 virtual void DeclareCommandLineOptions(boost::program_options::options_description& options);
42 virtual void Run(BasicNativeApplicationContext& context, const std::string& title, int argc, char* argv[]); 48 virtual void Run(NativeStoneApplicationContext& context, const std::string& title, int argc, char* argv[]);
43 virtual void ParseCommandLineOptions(const boost::program_options::variables_map& parameters); 49 virtual void ParseCommandLineOptions(const boost::program_options::variables_map& parameters);
44 virtual void Finalize(); 50 virtual void Finalize();
45 }; 51 };
46 52
47 } 53 }