summaryrefslogtreecommitdiff
path: root/imgui_impl_raylib_config.h
diff options
context:
space:
mode:
authorOskari Timperi <oswjk@users.noreply.github.com>2021-04-30 11:05:32 +0300
committerGitHub <noreply@github.com>2021-04-30 11:05:32 +0300
commitde3a4b463b6193193b0aa8f5aedb5d59bc9843f4 (patch)
treee4deb20e32703eec3e08cef067f0a8dc2f535439 /imgui_impl_raylib_config.h
parent27dda70ecec46db9c2e5e3f06cb9323f8a58a5f0 (diff)
parent1a512f8d9777176bd456558134d850b3c5db3320 (diff)
downloadimgui-impl-raylib-master.tar.gz
imgui-impl-raylib-master.zip
Merge pull request #3 from Ruwuchi/compatibilityHEADmaster
Compatibility
Diffstat (limited to 'imgui_impl_raylib_config.h')
-rw-r--r--imgui_impl_raylib_config.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/imgui_impl_raylib_config.h b/imgui_impl_raylib_config.h
new file mode 100644
index 0000000..3b1a575
--- /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