diff options
| author | Ruwuchi <73458244+Ruwuchi@users.noreply.github.com> | 2021-04-30 05:19:17 -0300 |
|---|---|---|
| committer | Ruwuchi <73458244+Ruwuchi@users.noreply.github.com> | 2021-04-30 05:19:17 -0300 |
| commit | 235be66e07d5714007ee976bb60db0a28e9261e5 (patch) | |
| tree | 3ad986e68e96f8941b4407b033343b8b4ebcd2bd /imgui_impl_raylib.h | |
| parent | 27dda70ecec46db9c2e5e3f06cb9323f8a58a5f0 (diff) | |
| download | imgui-impl-raylib-235be66e07d5714007ee976bb60db0a28e9261e5.tar.gz imgui-impl-raylib-235be66e07d5714007ee976bb60db0a28e9261e5.zip | |
Added Compatibility settings and support for UTF-8.
Diffstat (limited to 'imgui_impl_raylib.h')
| -rw-r--r-- | imgui_impl_raylib.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/imgui_impl_raylib.h b/imgui_impl_raylib.h index 7167c9a..8c93897 100644 --- a/imgui_impl_raylib.h +++ b/imgui_impl_raylib.h @@ -1,14 +1,32 @@ #ifndef IMGUI_IMPL_RAYLIB #define IMGUI_IMPL_RAYLIB +/* NOTE: I've added a few macros to deal with compatibility. + Most are turned off by default to keep it as close as possible to the original code, + but ImGui has its quirks when it comes to GL2. I'll be integrating part of WEREMSOFT's rendering code. + + (https://github.com/WEREMSOFT/c99-raylib-cimgui-template/). +*/ + +// The compiler whines about IMGUI_IMPL_API not being defined, so I'm leaving this here. +#include <imgui.h> + +// Config macros +#include "imgui_impl_raylib_config.h" + #if defined(__cplusplus) extern "C" { #endif -IMGUI_IMPL_API bool ImGui_ImplRaylib_Init(); -IMGUI_IMPL_API void ImGui_ImplRaylib_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplRaylib_NewFrame(); -IMGUI_IMPL_API bool ImGui_ImplRaylib_ProcessEvent(); + IMGUI_IMPL_API bool ImGui_ImplRaylib_Init(); + IMGUI_IMPL_API void ImGui_ImplRaylib_Shutdown(); + IMGUI_IMPL_API void ImGui_ImplRaylib_NewFrame(); + IMGUI_IMPL_API bool ImGui_ImplRaylib_ProcessEvent(); + +#ifdef COMPATIBILITY_MODE + IMGUI_IMPL_API void ImGui_ImplRaylib_LoadDefaultFontAtlas(); + IMGUI_IMPL_API void ImGui_ImplRaylib_Render(ImDrawData* draw_data); +#endif #if defined(__cplusplus) } |
