mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 06:40:05 +00:00 
			
		
		
		
	Use GLEW instead of QOpenGLFunctions
This commit is contained in:
		
							parent
							
								
									4bd749d976
								
							
						
					
					
						commit
						331b2d855f
					
				
					 33 changed files with 788 additions and 959 deletions
				
			
		|  | @ -1,5 +1,4 @@ | |||
| #include <scwx/qt/ui/imgui_debug_widget.hpp> | ||||
| #include <scwx/qt/gl/gl.hpp> | ||||
| #include <scwx/qt/manager/font_manager.hpp> | ||||
| #include <scwx/qt/model/imgui_context_model.hpp> | ||||
| 
 | ||||
|  | @ -60,8 +59,6 @@ public: | |||
| 
 | ||||
|    ImGuiContext* currentContext_; | ||||
| 
 | ||||
|    gl::OpenGLFunctions gl_; | ||||
| 
 | ||||
|    std::set<ImGuiContext*> renderedSet_ {}; | ||||
|    bool                    imGuiRendererInitialized_ {false}; | ||||
|    std::uint64_t           imGuiFontsBuildCount_ {}; | ||||
|  | @ -106,9 +103,6 @@ void ImGuiDebugWidget::initializeGL() | |||
| { | ||||
|    makeCurrent(); | ||||
| 
 | ||||
|    // Initialize OpenGL Functions
 | ||||
|    p->gl_.initializeOpenGLFunctions(); | ||||
| 
 | ||||
|    // Initialize ImGui OpenGL3 backend
 | ||||
|    ImGui::SetCurrentContext(p->context_); | ||||
|    ImGui_ImplOpenGL3_Init(); | ||||
|  | @ -119,8 +113,8 @@ void ImGuiDebugWidget::initializeGL() | |||
| 
 | ||||
| void ImGuiDebugWidget::paintGL() | ||||
| { | ||||
|    p->gl_.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); | ||||
|    p->gl_.glClear(GL_COLOR_BUFFER_BIT); | ||||
|    glClearColor(0.0f, 0.0f, 0.0f, 1.0f); | ||||
|    glClear(GL_COLOR_BUFFER_BIT); | ||||
| 
 | ||||
|    ImGui::SetCurrentContext(p->currentContext_); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat