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

EAGLView.h « Classes « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 517c9551fc3abbbea241467eb0cda853a32318c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#import <UIKit/UIKit.h>
#import <OpenGLES/EAGL.h>
#import <QuartzCore/CADisplayLink.h>
#import "MapViewController.h"

#include "../../std/shared_ptr.hpp"
#include "../../map/framework.hpp"
#include "../../map/feature_vec_model.hpp"
#include"RenderBuffer.hpp"

namespace iphone
{
	class RenderContext;
	class RenderBuffer;
}

namespace yg
{
	namespace gl
	{
		class FrameBuffer;
	}
}

typedef Framework<model::FeaturesFetcher> framework_t;

// This class wraps the CAEAGLLayer from CoreAnimation into a convenient UIView subclass.
// The view content is basically an EAGL surface you render your OpenGL scene into.
// Note that setting the view non-opaque will only work if the EAGL surface has an alpha channel.
@interface EAGLView : UIView
{
@public

  framework_t * framework;
	shared_ptr<iphone::RenderContext> renderContext;
	shared_ptr<yg::gl::FrameBuffer> frameBuffer;
	shared_ptr<iphone::RenderBuffer> renderBuffer;  
  RenderPolicy * renderPolicy;
}

- (void) initRenderPolicy;

@property (nonatomic, assign) framework_t * framework;
@property (nonatomic, assign) shared_ptr<iphone::RenderContext> renderContext;
@property (nonatomic, assign) shared_ptr<iphone::RenderBuffer> renderBuffer;
@property (nonatomic, assign) shared_ptr<yg::gl::FrameBuffer> frameBuffer;
@property (nonatomic, assign) RenderPolicy * renderPolicy;

@end