mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:40:06 +00:00 
			
		
		
		
	Connect ImGui render to QOpenGLWidgets
This commit is contained in:
		
							parent
							
								
									3c69ad28c6
								
							
						
					
					
						commit
						dd1b4f27c8
					
				
					 4 changed files with 76 additions and 6 deletions
				
			
		|  | @ -21,6 +21,8 @@ int main(int argc, char* argv[]) | |||
|    scwx::util::Logger::Initialize(); | ||||
|    spdlog::set_level(spdlog::level::debug); | ||||
| 
 | ||||
|    QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true); | ||||
| 
 | ||||
|    QApplication a(argc, argv); | ||||
| 
 | ||||
|    QCoreApplication::setApplicationName("Supercell Wx"); | ||||
|  | @ -61,7 +63,7 @@ int main(int argc, char* argv[]) | |||
|    // Initialize application
 | ||||
|    scwx::qt::config::RadarSite::Initialize(); | ||||
|    scwx::qt::manager::SettingsManager::Initialize(); | ||||
|    scwx::qt::manager::ResourceManager::PreLoad(); | ||||
|    scwx::qt::manager::ResourceManager::Initialize(); | ||||
| 
 | ||||
|    // Run Qt main loop
 | ||||
|    int result; | ||||
|  | @ -78,6 +80,9 @@ int main(int argc, char* argv[]) | |||
|    work.reset(); | ||||
|    threadPool.join(); | ||||
| 
 | ||||
|    // Shutdown application
 | ||||
|    scwx::qt::manager::ResourceManager::Shutdown(); | ||||
| 
 | ||||
|    // Shutdown AWS SDK
 | ||||
|    Aws::ShutdownAPI(awsSdkOptions); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat