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: backends/imgui_impl_dx11.h
+19-3
Original file line number
Diff line number
Diff line change
@@ -4,26 +4,42 @@
4
4
// Implemented features:
5
5
// [X] Renderer: User texture binding. Use 'ID3D11ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID!
6
6
// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices.
7
+
// [X] Renderer: Expose selected render state for draw callbacks to use. Access in '(ImGui_ImplXXXX_RenderState*)GetPlatformIO().Renderer_RenderState'.
7
8
8
9
// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this.
9
10
// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need.
10
-
// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
Copy file name to clipboardExpand all lines: backends/imgui_impl_glfw.h
+16-3
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,17 @@
5
5
// Implemented features:
6
6
// [X] Platform: Clipboard support.
7
7
// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen/Pen (Windows only).
8
-
// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy GLFW_KEY_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set]
8
+
// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy GLFW_KEY_* values are obsolete since 1.87 and not supported since 1.91.5]
9
9
// [X] Platform: Gamepad support. Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'.
10
10
// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange' (note: the resizing cursors requires GLFW 3.4+).
11
11
12
12
// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this.
13
13
// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need.
14
-
// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
// - When calling Init with 'install_callbacks=true': ImGui_ImplGlfw_InstallCallbacks() is called. GLFW callbacks will be installed for you. They will chain-call user's previously installed callbacks, if any.
32
42
// - When calling Init with 'install_callbacks=false': GLFW callbacks won't be installed. You will need to call individual function yourself from your own GLFW callbacks.
@@ -47,4 +57,7 @@ IMGUI_IMPL_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window, int key,
// - Getting Started https://dearimgui.com/getting-started
12
+
// - Documentation https://dearimgui.com/docs (same as your local docs/ folder).
13
+
// - Introduction, links and more at the top of imgui.cpp
11
14
12
15
// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)**
13
16
// **Prefer using the code in imgui_impl_opengl3.cpp**
@@ -19,8 +22,10 @@
19
22
20
23
// CHANGELOG
21
24
// (minor and older changes stripped away, please see git history for details)
25
+
// 2024-10-07: OpenGL: Changed default texture sampler to Clamp instead of Repeat/Wrap.
26
+
// 2024-06-28: OpenGL: ImGui_ImplOpenGL2_NewFrame() recreates font texture if it has been destroyed by ImGui_ImplOpenGL2_DestroyFontsTexture(). (#7748)
22
27
// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11.
23
-
// 2021-12-08: OpenGL: Fixed mishandling of the the ImDrawCmd::IdxOffset field! This is an old bug but it never had an effect until some internal rendering changes in 1.86.
28
+
// 2021-12-08: OpenGL: Fixed mishandling of the ImDrawCmd::IdxOffset field! This is an old bug but it never had an effect until some internal rendering changes in 1.86.
24
29
// 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).
25
30
// 2021-05-19: OpenGL: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement)
26
31
// 2021-01-03: OpenGL: Backup, setup and restore GL_SHADE_MODEL state, disable GL_STENCIL_TEST and disable GL_NORMAL_ARRAY client state to increase compatibility with legacy OpenGL applications.
0 commit comments