mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:10:04 +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
				
			
		|  | @ -135,9 +135,9 @@ public: | |||
|       std::size_t lineWidth_ {}; | ||||
|    }; | ||||
| 
 | ||||
|    explicit Impl(AlertLayer*                 self, | ||||
|                  std::shared_ptr<MapContext> context, | ||||
|                  awips::Phenomenon           phenomenon) : | ||||
|    explicit Impl(AlertLayer*                    self, | ||||
|                  std::shared_ptr<gl::GlContext> context, | ||||
|                  awips::Phenomenon              phenomenon) : | ||||
|        self_ {self}, | ||||
|        phenomenon_ {phenomenon}, | ||||
|        ibw_ {awips::ibw::GetImpactBasedWarningInfo(phenomenon)}, | ||||
|  | @ -250,7 +250,7 @@ AlertLayer::AlertLayer(const std::shared_ptr<MapContext>& context, | |||
|     DrawLayer( | ||||
|        context, | ||||
|        fmt::format("AlertLayer {}", awips::GetPhenomenonText(phenomenon))), | ||||
|     p(std::make_unique<Impl>(this, context, phenomenon)) | ||||
|     p(std::make_unique<Impl>(this, context->gl_context(), phenomenon)) | ||||
| { | ||||
|    for (auto alertActive : {false, true}) | ||||
|    { | ||||
|  | @ -298,7 +298,7 @@ void AlertLayer::Initialize() | |||
| 
 | ||||
| void AlertLayer::Render(const QMapLibre::CustomLayerRenderParameters& params) | ||||
| { | ||||
|    gl::OpenGLFunctions& gl = context()->gl(); | ||||
|    gl::OpenGLFunctions& gl = context()->gl_context()->gl(); | ||||
| 
 | ||||
|    for (auto alertActive : {false, true}) | ||||
|    { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat