mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 14:30:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			836 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			836 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <scwx/qt/gl/gl.hpp>
 | |
| #include <scwx/qt/map/map_settings.hpp>
 | |
| #include <scwx/qt/view/radar_product_view.hpp>
 | |
| 
 | |
| namespace scwx
 | |
| {
 | |
| namespace qt
 | |
| {
 | |
| namespace map
 | |
| {
 | |
| 
 | |
| struct MapContext
 | |
| {
 | |
|    explicit MapContext(
 | |
|       std::shared_ptr<view::RadarProductView> radarProductView = nullptr) :
 | |
|        gl_ {}, settings_ {}, radarProductView_ {radarProductView}
 | |
|    {
 | |
|    }
 | |
|    ~MapContext() = default;
 | |
| 
 | |
|    MapContext(const MapContext&) = delete;
 | |
|    MapContext& operator=(const MapContext&) = delete;
 | |
| 
 | |
|    MapContext(MapContext&&) noexcept = default;
 | |
|    MapContext& operator=(MapContext&&) noexcept = default;
 | |
| 
 | |
|    gl::OpenGLFunctions                     gl_;
 | |
|    MapSettings                             settings_;
 | |
|    std::shared_ptr<view::RadarProductView> radarProductView_;
 | |
| };
 | |
| 
 | |
| } // namespace map
 | |
| } // namespace qt
 | |
| } // namespace scwx
 | 
