Go to the documentation of this file.
28 #include <GLUT/glut.h>
30 #include <GL/freeglut.h>
34 #pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff)
84 #ifdef __FREEGLUT_EXT_H__
101 int current_time = glutGet(GLUT_ELAPSED_TIME);
102 int delta_time_ms = (current_time -
g_Time);
103 if (delta_time_ms <= 0)
115 int mods = glutGetModifiers();
116 io.
KeyCtrl = (mods & GLUT_ACTIVE_CTRL) != 0;
117 io.
KeyShift = (mods & GLUT_ACTIVE_SHIFT) != 0;
118 io.
KeyAlt = (mods & GLUT_ACTIVE_ALT) != 0;
131 if (c >= 1 && c <= 26)
133 else if (c >=
'a' && c <=
'z')
135 else if (c >=
'A' && c <=
'Z')
147 if (c >= 1 && c <= 26)
149 else if (c >=
'a' && c <=
'z')
151 else if (c >=
'A' && c <=
'Z')
184 if (glut_button == GLUT_LEFT_BUTTON) button = 0;
185 if (glut_button == GLUT_RIGHT_BUTTON) button = 1;
186 if (glut_button == GLUT_MIDDLE_BUTTON) button = 2;
187 if (button != -1 && state == GLUT_DOWN)
189 if (button != -1 && state == GLUT_UP)
193 #ifdef __FREEGLUT_EXT_H__
int KeyMap[ImGuiKey_COUNT]
void ImGui_ImplGLUT_ReshapeFunc(int w, int h)
void ImGui_ImplGLUT_MouseFunc(int glut_button, int state, int x, int y)
void ImGui_ImplGLUT_SpecialFunc(int key, int x, int y)
IMGUI_API ImGuiIO & GetIO()
void ImGui_ImplGLUT_InstallFuncs()
IMGUI_API void AddInputCharacter(unsigned int c)
void ImGui_ImplGLUT_NewFrame()
IMGUI_IMPL_API void ImGui_ImplGLUT_MouseWheelFunc(int button, int dir, int x, int y)
void ImGui_ImplGLUT_Shutdown()
void ImGui_ImplGLUT_KeyboardUpFunc(unsigned char c, int x, int y)
void ImGui_ImplGLUT_MotionFunc(int x, int y)
bool ImGui_ImplGLUT_Init()
#define IM_ARRAYSIZE(_ARR)
const SETUP_TEARDOWN_TESTCONTEXT char * key
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
const char * BackendPlatformName
IMGUI_API void NewFrame()
void ImGui_ImplGLUT_SpecialUpFunc(int key, int x, int y)
static void ImGui_ImplGLUT_UpdateKeyboardMods()
GLubyte GLubyte GLubyte GLubyte w
void ImGui_ImplGLUT_KeyboardFunc(unsigned char c, int x, int y)
GLfloat GLfloat GLfloat GLfloat h
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:54