imgui_impl_marmalade.h 1.6 KB

1234567891011121314151617181920212223242526272829
  1. // dear imgui: Renderer + Platform Backend for Marmalade + IwGx
  2. // Marmalade code: Copyright (C) 2015 by Giovanni Zito (this file is part of Dear ImGui)
  3. // Implemented features:
  4. // [X] Renderer: User texture binding. Use 'CIwTexture*' as ImTextureID. Read the FAQ about ImTextureID!
  5. // You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this.
  6. // Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need.
  7. // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
  8. // Read online: https://github.com/ocornut/imgui/tree/master/docs
  9. #pragma once
  10. #include "imgui.h" // IMGUI_IMPL_API
  11. IMGUI_IMPL_API bool ImGui_Marmalade_Init(bool install_callbacks);
  12. IMGUI_IMPL_API void ImGui_Marmalade_Shutdown();
  13. IMGUI_IMPL_API void ImGui_Marmalade_NewFrame();
  14. IMGUI_IMPL_API void ImGui_Marmalade_RenderDrawData(ImDrawData* draw_data);
  15. // Use if you want to reset your rendering device without losing Dear ImGui state.
  16. IMGUI_IMPL_API void ImGui_Marmalade_InvalidateDeviceObjects();
  17. IMGUI_IMPL_API bool ImGui_Marmalade_CreateDeviceObjects();
  18. // Callbacks (installed by default if you enable 'install_callbacks' during initialization)
  19. // You can also handle inputs yourself and use those as a reference.
  20. IMGUI_IMPL_API int32 ImGui_Marmalade_PointerButtonEventCallback(void* system_data, void* user_data);
  21. IMGUI_IMPL_API int32 ImGui_Marmalade_KeyCallback(void* system_data, void* user_data);
  22. IMGUI_IMPL_API int32 ImGui_Marmalade_CharCallback(void* system_data, void* user_data);