From 943d893105e3e76839be98529994414c4b0b01a0 Mon Sep 17 00:00:00 2001 From: rachytski Date: Mon, 24 Oct 2011 19:15:40 +0300 Subject: using VideoTimer in Desktop and iOS version. stopping it, when the pause is longer than 60 cycles. refactored WindowHandle. implemented QtVideoTimer. closes #356 --- iphone/Maps/Classes/EAGLView.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'iphone/Maps/Classes/EAGLView.h') 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 framework_t; @public - shared_ptr windowHandle; + shared_ptr windowHandle; + shared_ptr videoTimer; shared_ptr drawer; shared_ptr 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 windowHandle; +@property (nonatomic, assign) shared_ptr windowHandle; @property (nonatomic, assign) shared_ptr drawer; @property (nonatomic, assign) shared_ptr renderContext; @property (nonatomic, assign) shared_ptr renderBuffer; -- cgit v1.2.3