You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: OFS-lib/imgui_impl/imgui_impl_opengl3.cpp
+32-62Lines changed: 32 additions & 62 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@
16
16
// CHANGELOG
17
17
// (minor and older changes stripped away, please see git history for details)
18
18
// 2021-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface.
19
+
// 2021-08-19: OpenGL: Embed and use our own minimal GL loader (imgui_impl_opengl3_loader.h), removing requirement and support for third-party loader.
19
20
// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX).
20
21
// 2021-06-25: OpenGL: Use OES_vertex_array extension on Emscripten + backup/restore current state.
21
22
// 2021-06-21: OpenGL: Destroy individual vertex/fragment shader objects right after they are linked into the main shader.
@@ -110,36 +111,16 @@
110
111
#else
111
112
#include<GLES3/gl3.h>// Use GL ES 3
112
113
#endif
113
-
#else
114
-
// About Desktop OpenGL function loaders:
115
-
// Modern desktop OpenGL doesn't have a standard portable header file to load OpenGL function pointers.
116
-
// Helper libraries are often used for this purpose! Here we are supporting a few common ones (gl3w, glew, glad).
117
-
// You may use another loader/header of your choice (glext, glLoadGen, etc.), or chose to manually implement your own.
118
-
#if defined(IMGUI_IMPL_OPENGL_LOADER_GL3W)
119
-
#include<GL/gl3w.h>// Needs to be initialized with gl3wInit() in user's code
120
-
#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLEW)
121
-
#include<GL/glew.h>// Needs to be initialized with glewInit() in user's code.
122
-
#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD)
123
-
#include<glad/glad.h>// Needs to be initialized with gladLoadGL() in user's code.
124
-
#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD2)
125
-
#include<glad/gl.h>// Needs to be initialized with gladLoadGL(...) or gladLoaderLoadGL() in user's code.
0 commit comments