mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:10:05 +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
				
			
		|  | @ -10,19 +10,21 @@ namespace scwx::qt::map | |||
| class PlacefileLayer : public DrawLayer | ||||
| { | ||||
|    Q_OBJECT | ||||
|    Q_DISABLE_COPY_MOVE(PlacefileLayer) | ||||
| 
 | ||||
| public: | ||||
|    explicit PlacefileLayer(const std::shared_ptr<MapContext>& context, | ||||
|                            const std::string&                 placefileName); | ||||
|    explicit PlacefileLayer(const std::shared_ptr<gl::GlContext>& glContext, | ||||
|                            const std::string&                    placefileName); | ||||
|    ~PlacefileLayer(); | ||||
| 
 | ||||
|    std::string placefile_name() const; | ||||
| 
 | ||||
|    void set_placefile_name(const std::string& placefileName); | ||||
| 
 | ||||
|    void Initialize() override final; | ||||
|    void Render(const QMapLibre::CustomLayerRenderParameters&) override final; | ||||
|    void Deinitialize() override final; | ||||
|    void Initialize(const std::shared_ptr<MapContext>& mapContext) final; | ||||
|    void Render(const std::shared_ptr<MapContext>& mapContext, | ||||
|                const QMapLibre::CustomLayerRenderParameters&) final; | ||||
|    void Deinitialize() final; | ||||
| 
 | ||||
|    void ReloadData(); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat