From 235be66e07d5714007ee976bb60db0a28e9261e5 Mon Sep 17 00:00:00 2001 From: Ruwuchi <73458244+Ruwuchi@users.noreply.github.com> Date: Fri, 30 Apr 2021 05:19:17 -0300 Subject: Added Compatibility settings and support for UTF-8. --- imgui_impl_raylib_config.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 imgui_impl_raylib_config.h (limited to 'imgui_impl_raylib_config.h') diff --git a/imgui_impl_raylib_config.h b/imgui_impl_raylib_config.h new file mode 100644 index 0000000..75973e0 --- /dev/null +++ b/imgui_impl_raylib_config.h @@ -0,0 +1,20 @@ +#ifndef H_IM_RAYLIB_CONFIG +#define H_IM_RAYLIB_CONFIG + +/* This file contains a few macros for you to play with when using the Raylib ImGui implementation. + To use them, just uncomment the macro under its description, and it should be all set! +*/ + +// COMPATIBILITY_MODE Toggles the integrated rlgl code. +//#define COMPATIBILITY_MODE + +// AUTO_FONTATLAS REQUIRES COMPATIBILITY - Can be done manually, but is pretty useful... +//#define AUTO_FONTATLAS + +/* ENABLE_SCODETOUTF8 Toggled by default, since the code was passing + raylib's scancodes as codepoints, and ImGui uses UTF-8 + on widgets like InputText. +*/ +#define ENABLE_SCODETOUTF8 + +#endif \ No newline at end of file -- cgit v1.2.3 From 1a512f8d9777176bd456558134d850b3c5db3320 Mon Sep 17 00:00:00 2001 From: Ruwuchi <73458244+Ruwuchi@users.noreply.github.com> Date: Fri, 30 Apr 2021 04:26:56 -0300 Subject: Update imgui_impl_raylib_config.h Fixed tabs! --- imgui_impl_raylib_config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'imgui_impl_raylib_config.h') diff --git a/imgui_impl_raylib_config.h b/imgui_impl_raylib_config.h index 75973e0..3b1a575 100644 --- a/imgui_impl_raylib_config.h +++ b/imgui_impl_raylib_config.h @@ -12,9 +12,9 @@ //#define AUTO_FONTATLAS /* ENABLE_SCODETOUTF8 Toggled by default, since the code was passing - raylib's scancodes as codepoints, and ImGui uses UTF-8 - on widgets like InputText. + raylib's scancodes as codepoints, and ImGui uses UTF-8 + on widgets like InputText. */ #define ENABLE_SCODETOUTF8 -#endif \ No newline at end of file +#endif -- cgit v1.2.3