mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 05:10:04 +00:00 
			
		
		
		
	Remove GlContext from MapContext, layers receive MapContext from Initialize/Render
This commit is contained in:
		
							parent
							
								
									2d4ad2737e
								
							
						
					
					
						commit
						44a864f50f
					
				
					 25 changed files with 446 additions and 398 deletions
				
			
		|  | @ -16,9 +16,6 @@ public: | |||
| 
 | ||||
|    ~Impl() {} | ||||
| 
 | ||||
|    std::shared_ptr<gl::GlContext> glContext_ { | ||||
|       std::make_shared<gl::GlContext>()}; | ||||
| 
 | ||||
|    std::weak_ptr<QMapLibre::Map> map_ {}; | ||||
|    MapSettings                   settings_ {}; | ||||
|    float                         pixelRatio_ {1.0f}; | ||||
|  | @ -50,11 +47,6 @@ MapContext::~MapContext() = default; | |||
| MapContext::MapContext(MapContext&&) noexcept            = default; | ||||
| MapContext& MapContext::operator=(MapContext&&) noexcept = default; | ||||
| 
 | ||||
| std::shared_ptr<gl::GlContext> MapContext::gl_context() const | ||||
| { | ||||
|    return p->glContext_; | ||||
| } | ||||
| 
 | ||||
| std::weak_ptr<QMapLibre::Map> MapContext::map() const | ||||
| { | ||||
|    return p->map_; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat