imgui_impl_marmalade.h (1544B)
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 4 // Implemented features: 5 // [X] Renderer: User texture binding. Use 'CIwTexture*' as ImTextureID. Read the FAQ about ImTextureID! 6 7 // You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. 8 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. 9 // Read online: https://github.com/ocornut/imgui/tree/master/docs 10 11 #pragma once 12 #include "imgui.h" // IMGUI_IMPL_API 13 14 IMGUI_IMPL_API bool ImGui_Marmalade_Init(bool install_callbacks); 15 IMGUI_IMPL_API void ImGui_Marmalade_Shutdown(); 16 IMGUI_IMPL_API void ImGui_Marmalade_NewFrame(); 17 IMGUI_IMPL_API void ImGui_Marmalade_RenderDrawData(ImDrawData* draw_data); 18 19 // Use if you want to reset your rendering device without losing Dear ImGui state. 20 IMGUI_IMPL_API void ImGui_Marmalade_InvalidateDeviceObjects(); 21 IMGUI_IMPL_API bool ImGui_Marmalade_CreateDeviceObjects(); 22 23 // Callbacks (installed by default if you enable 'install_callbacks' during initialization) 24 // You can also handle inputs yourself and use those as a reference. 25 IMGUI_IMPL_API int32 ImGui_Marmalade_PointerButtonEventCallback(void* system_data, void* user_data); 26 IMGUI_IMPL_API int32 ImGui_Marmalade_KeyCallback(void* system_data, void* user_data); 27 IMGUI_IMPL_API int32 ImGui_Marmalade_CharCallback(void* system_data, void* user_data);