mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 17:20:06 +00:00 
			
		
		
		
	MapContext has a GlContext instead of MapContext is a GlContext
This commit is contained in:
		
							parent
							
								
									58f2609fe7
								
							
						
					
					
						commit
						2d4ad2737e
					
				
					 31 changed files with 147 additions and 307 deletions
				
			
		|  | @ -1,17 +1,13 @@ | |||
| #include <scwx/qt/map/generic_layer.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace qt | ||||
| { | ||||
| namespace map | ||||
| namespace scwx::qt::map | ||||
| { | ||||
| 
 | ||||
| class GenericLayerImpl | ||||
| { | ||||
| public: | ||||
|    explicit GenericLayerImpl(std::shared_ptr<MapContext> context) : | ||||
|        context_ {context} | ||||
|        context_ {std::move(context)} | ||||
|    { | ||||
|    } | ||||
| 
 | ||||
|  | @ -20,7 +16,7 @@ public: | |||
|    std::shared_ptr<MapContext> context_; | ||||
| }; | ||||
| 
 | ||||
| GenericLayer::GenericLayer(std::shared_ptr<MapContext> context) : | ||||
| GenericLayer::GenericLayer(const std::shared_ptr<MapContext>& context) : | ||||
|     p(std::make_unique<GenericLayerImpl>(context)) | ||||
| { | ||||
| } | ||||
|  | @ -43,6 +39,4 @@ std::shared_ptr<MapContext> GenericLayer::context() const | |||
|    return p->context_; | ||||
| } | ||||
| 
 | ||||
| } // namespace map
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
| } // namespace scwx::qt::map
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat