imgui_impl_raylib.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**********************************************************************************************
  2. *
  3. * raylibExtras * Utilities and Shared Components for Raylib
  4. *
  5. * rlImGui * basic ImGui integration
  6. *
  7. * LICENSE: ZLIB
  8. *
  9. * Copyright (c) 2024 Jeffery Myers
  10. *
  11. * Permission is hereby granted, free of charge, to any person obtaining a copy
  12. * of this software and associated documentation files (the "Software"), to deal
  13. * in the Software without restriction, including without limitation the rights
  14. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  15. * copies of the Software, and to permit persons to whom the Software is
  16. * furnished to do so, subject to the following conditions:
  17. *
  18. * The above copyright notice and this permission notice shall be included in all
  19. * copies or substantial portions of the Software.
  20. *
  21. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  22. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  23. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  24. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  25. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  26. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  27. * SOFTWARE.
  28. *
  29. **********************************************************************************************/
  30. // dear imgui: Platform Backend for Raylib
  31. // (Info: Raylib is a cross-platform general purpose library for handling windows, inputs, graphics context creation, etc. using OpenGL)
  32. // This is is the low level ImGui backend for raylib, a higher level API that matches the raylib API can be found in rlImGui.h
  33. // You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this.
  34. // Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need.
  35. // Learn about Dear ImGui:
  36. // - FAQ https://dearimgui.com/faq
  37. // - Getting Started https://dearimgui.com/getting-started
  38. // - Documentation https://dearimgui.com/docs (same as your local docs/ folder).
  39. // - Introduction, links and more at the top of imgui.cpp
  40. #pragma once
  41. #include "imgui.h" // IMGUI_IMPL_API
  42. #ifndef IMGUI_DISABLE
  43. IMGUI_IMPL_API bool ImGui_ImplRaylib_Init(void);
  44. IMGUI_IMPL_API void Imgui_ImplRaylib_BuildFontAtlas(void);
  45. IMGUI_IMPL_API void ImGui_ImplRaylib_Shutdown(void);
  46. IMGUI_IMPL_API void ImGui_ImplRaylib_NewFrame(void);
  47. IMGUI_IMPL_API void ImGui_ImplRaylib_RenderDrawData(ImDrawData* draw_data);
  48. IMGUI_IMPL_API bool ImGui_ImplRaylib_ProcessEvents(void);
  49. #endif // #ifndef IMGUI_DISABLE