Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2011-09-08 20:38:42 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:23:35 +0300
commit580cd9d43a7c0877a2797dde27f69636cafb5a8c (patch)
tree1ec3d5c7adb36619528194efb687e3d3975079ea /iphone/Maps/Classes/EAGLView.h
parent4d88f6f48f703b942d2923d0aceef7a1b76593e9 (diff)
using CADisplayLink for smooth and responsive GUI.
Diffstat (limited to 'iphone/Maps/Classes/EAGLView.h')
-rw-r--r--iphone/Maps/Classes/EAGLView.h4
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