mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 05:30:05 +00:00 
			
		
		
		
	Define draw item shaders in draw items, not the generic draw layer
This commit is contained in:
		
							parent
							
								
									d84a618d3d
								
							
						
					
					
						commit
						224d36bae5
					
				
					 8 changed files with 88 additions and 83 deletions
				
			
		|  | @ -59,7 +59,7 @@ public: | |||
| 
 | ||||
| // TODO: OpenGL context with shaders
 | ||||
| GeoLine::GeoLine(OpenGLFunctions& gl) : | ||||
|     DrawItem(), p(std::make_unique<Impl>(gl)) | ||||
|     DrawItem(gl), p(std::make_unique<Impl>(gl)) | ||||
| { | ||||
| } | ||||
| GeoLine::~GeoLine() = default; | ||||
|  | @ -118,7 +118,7 @@ void GeoLine::Initialize() | |||
|    p->dirty_ = true; | ||||
| } | ||||
| 
 | ||||
| void GeoLine::Render() | ||||
| void GeoLine::Render(const QMapbox::CustomLayerRenderParameters&) | ||||
| { | ||||
|    if (p->visible_) | ||||
|    { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat