imgui_impl_glfw.h
Go to the documentation of this file.
1 // ImGui GLFW binding with OpenGL
2 // In this binding, ImTextureID is used to store an OpenGL 'GLuint' texture identifier. Read the FAQ about ImTextureID in imgui.cpp.
3 
4 // If your context is GL3/GL3 then prefer using the code in opengl3_example.
5 // You *might* use this code with a GL3/GL4 context but make sure you disable the programmable pipeline by calling "glUseProgram(0)" before ImGui::Render().
6 // We cannot do that from GL2 code because the function doesn't exist.
7 
8 // You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this.
9 // If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and ImGui_ImplXXXX_Shutdown().
10 // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
11 // https://github.com/ocornut/imgui
12 
13 struct GLFWwindow;
14 
15 IMGUI_API bool ImGui_ImplGlfw_Init(GLFWwindow* window, bool install_callbacks);
17 IMGUI_API void ImGui_ImplGlfw_NewFrame(float scale_factor);
18 
19 // Use if you want to reset your rendering device without losing ImGui state.
22 
23 // GLFW callbacks (installed by default if you enable 'install_callbacks' during initialization)
24 // Provided here if you want to chain callbacks.
25 // You can also handle inputs yourself and use those as a reference.
26 IMGUI_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window, int button, int action, int mods);
28 IMGUI_API void ImGui_ImplGlFw_KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods);
IMGUI_API bool ImGui_ImplGlfw_CreateDeviceObjects()
IMGUI_API void ImGui_ImplGlfw_InvalidateDeviceObjects()
IMGUI_API void ImGui_ImplGlfw_CharCallback(GLFWwindow *window, unsigned int c)
IMGUI_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow *window, int button, int action, int mods)
GLuint64 key
Definition: glext.h:8966
#define IMGUI_API
Definition: imgui.h:23
const GLubyte * c
Definition: glext.h:12690
IMGUI_API void ImGui_ImplGlFw_KeyCallback(GLFWwindow *window, int key, int scancode, int action, int mods)
IMGUI_API bool ImGui_ImplGlfw_Init(GLFWwindow *window, bool install_callbacks)
action
Definition: enums.py:62
GLint GLint GLint yoffset
IMGUI_API void ImGui_ImplGlfw_ScrollCallback(GLFWwindow *window, double xoffset, double yoffset)
IMGUI_API void ImGui_ImplGlfw_Shutdown()
GLint GLint xoffset
struct GLFWwindow GLFWwindow
IMGUI_API void ImGui_ImplGlfw_NewFrame(float scale_factor)


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:17