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
Copy file name to clipboardExpand all lines: examples/imgui_impl_opengl3.cpp
+20-19
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
12
12
// CHANGELOG
13
13
// (minor and older changes stripped away, please see git history for details)
14
+
// 2018-07-30: OpenGL: Support for GLSL 300 ES and 410 core. Fixes for Emscripten compilation.
14
15
// 2018-07-10: OpenGL: Support for more GLSL versions (based on the GLSL version string). Added error output when shaders fail to compile/link.
15
16
// 2018-06-08: Misc: Extracted imgui_impl_opengl3.cpp/.h away from the old combined GLFW/SDL+OpenGL3 examples.
16
17
// 2018-06-08: OpenGL: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle.
@@ -58,13 +59,13 @@
58
59
#endif
59
60
60
61
#ifdef __EMSCRIPTEN__
61
-
#include<GLES3/gl3.h>
62
+
#include<GLES3/gl3.h>// Use GL ES 3
62
63
#else
63
-
#include<GL/gl3w.h>// This example is using gl3w to access OpenGL functions. You may use another OpenGL loader/header such as: glew, glext, glad, glLoadGen, etc.
64
-
#endif
64
+
#include<GL/gl3w.h>// This example is using gl3w to access OpenGL functions. You may use another OpenGL loader/header such as: glew, glext, glad, glLoadGen, etc.
// Our visible imgui space lies from draw_data->DisplayPps (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayMin is typically (0,0) for single viewport apps.
0 commit comments