diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2011-09-08 20:38:42 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:23:35 +0300 |
commit | 580cd9d43a7c0877a2797dde27f69636cafb5a8c (patch) | |
tree | 1ec3d5c7adb36619528194efb687e3d3975079ea /iphone/Maps/Classes/EAGLView.h | |
parent | 4d88f6f48f703b942d2923d0aceef7a1b76593e9 (diff) |
using CADisplayLink for smooth and responsive GUI.
Diffstat (limited to 'iphone/Maps/Classes/EAGLView.h')
-rw-r--r-- | iphone/Maps/Classes/EAGLView.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/iphone/Maps/Classes/EAGLView.h b/iphone/Maps/Classes/EAGLView.h index 222ca3dd05..e74a3c9c7a 100644 --- a/iphone/Maps/Classes/EAGLView.h +++ b/iphone/Maps/Classes/EAGLView.h @@ -2,6 +2,7 @@ #import <OpenGLES/EAGL.h> #import <OpenGLES/ES1/gl.h> #import <OpenGLES/ES1/glext.h> +#import <QuartzCore/CADisplayLink.h> #import "MapViewController.h" #include "../../std/shared_ptr.hpp" #include "../../map/drawer_yg.hpp" @@ -41,14 +42,17 @@ namespace yg shared_ptr<yg::ResourceManager> textureManager; MapViewController * controller; + bool doRepaint; } // Called as a result of invalidate on iphone::WindowHandle - (void)drawViewOnMainThread; +@property (nonatomic, assign) CADisplayLink * displayLink; @property (nonatomic, assign) MapViewController * controller; @property (nonatomic, assign) shared_ptr<iphone::WindowHandle> windowHandle; @property (nonatomic, assign) shared_ptr<iphone::RenderContext> renderContext; @property (nonatomic, assign) shared_ptr<yg::ResourceManager> resourceManager; +@property (nonatomic, assign) bool doRepaint; @end |