mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:10:06 +00:00
Merge pull request #478 from dpaulat/feature/opengl-3.3-core
Use GLEW instead of QOpenGLFunctions
This commit is contained in:
commit
01ae858906
35 changed files with 996 additions and 1026 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_);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/qt/gl/gl.hpp>
|
||||
|
||||
#include <QOpenGLWidget>
|
||||
|
||||
struct ImGuiContext;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue