#import #import #import #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 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 renderContext; shared_ptr frameBuffer; shared_ptr renderBuffer; RenderPolicy * renderPolicy; } - (void) initRenderPolicy; @property (nonatomic, assign) framework_t * framework; @property (nonatomic, assign) shared_ptr renderContext; @property (nonatomic, assign) shared_ptr renderBuffer; @property (nonatomic, assign) shared_ptr frameBuffer; @property (nonatomic, assign) RenderPolicy * renderPolicy; @end