comparison Applications/Sdl/SdlStoneApplicationRunner.cpp @ 1066:b537002f83a9 broker

removing broker from deprecated classes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 15 Oct 2019 15:39:39 +0200
parents 4fe4b221a31f
children 04a95ee91327
comparison
equal deleted inserted replaced
1065:9d42f89b8c3c 1066:b537002f83a9
101 **************************************************************/ 101 **************************************************************/
102 102
103 LOG(WARNING) << "Starting the application"; 103 LOG(WARNING) << "Starting the application";
104 104
105 SdlWindow window(title.c_str(), width_, height_, enableOpenGl_); 105 SdlWindow window(title.c_str(), width_, height_, enableOpenGl_);
106 SdlEngine sdl(window, context, broker_); 106 SdlEngine sdl(window, context);
107 107
108 { 108 {
109 NativeStoneApplicationContext::GlobalMutexLocker locker(context); 109 NativeStoneApplicationContext::GlobalMutexLocker locker(context);
110 110
111 locker.GetCentralViewport().RegisterObserverCallback( 111 sdl.Register<Deprecated::IViewport::ViewportChangedMessage>
112 new Callable<SdlEngine, Deprecated::IViewport::ViewportChangedMessage> 112 (locker.GetCentralViewport(), &SdlEngine::OnViewportChanged);
113 (sdl, &SdlEngine::OnViewportChanged));
114 113
115 //context.GetCentralViewport().Register(sdl); // (*) 114 //context.GetCentralViewport().Register(sdl); // (*)
116 } 115 }
117 116
118 context.Start(); 117 context.Start();