diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2011-10-24 20:15:40 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:26:38 +0300 |
commit | 943d893105e3e76839be98529994414c4b0b01a0 (patch) | |
tree | c9a0dd11971b9bd300323d8b01b6fd11f03ed473 /iphone/Maps/Classes/EAGLView.h | |
parent | 9906d541f6b2279b550d05ec6e5a6422c5e7ccf6 (diff) |
using VideoTimer in Desktop and iOS version. stopping it, when the pause is longer than 60 cycles. refactored WindowHandle. implemented QtVideoTimer. closes #356
Diffstat (limited to 'iphone/Maps/Classes/EAGLView.h')
-rw-r--r-- | iphone/Maps/Classes/EAGLView.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/iphone/Maps/Classes/EAGLView.h b/iphone/Maps/Classes/EAGLView.h index 4a24c4e958..a7289d4b6f 100644 --- a/iphone/Maps/Classes/EAGLView.h +++ b/iphone/Maps/Classes/EAGLView.h @@ -9,7 +9,8 @@ #include "../../map/drawer_yg.hpp" #include "../../map/framework.hpp" #include "../../map/feature_vec_model.hpp" -#include "RenderBuffer.hpp" +#include "../../platform/video_timer.hpp" +#include"RenderBuffer.hpp" namespace iphone { @@ -41,17 +42,15 @@ typedef Framework<model::FeaturesFetcher> framework_t; @public - shared_ptr<iphone::WindowHandle> windowHandle; + shared_ptr<WindowHandle> windowHandle; + shared_ptr<VideoTimer> videoTimer; shared_ptr<DrawerYG> drawer; shared_ptr<iphone::RenderBuffer> renderBuffer; } -// Called as a result of invalidate on iphone::WindowHandle -- (void)drawViewOnMainThread; - -@property (nonatomic, assign) CADisplayLink * displayLink; +- (void) drawFrame; @property (nonatomic, assign) framework_t * framework; -@property (nonatomic, assign) shared_ptr<iphone::WindowHandle> windowHandle; +@property (nonatomic, assign) shared_ptr<WindowHandle> windowHandle; @property (nonatomic, assign) shared_ptr<DrawerYG> drawer; @property (nonatomic, assign) shared_ptr<iphone::RenderContext> renderContext; @property (nonatomic, assign) shared_ptr<iphone::RenderBuffer> renderBuffer; |