1 // dear imgui: Renderer + Platform Binding 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 in imgui.cpp. 6 7 // You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this. 8 // If you are new to dear imgui, read examples/README.txt and read the documentation at the top of imgui.cpp. 9 // https://github.com/ocornut/imgui 10 11 #pragma once 12 13 IMGUI_IMPL_API bool ImGui_Marmalade_Init(bool install_callbacks); 14 IMGUI_IMPL_API void ImGui_Marmalade_Shutdown(); 15 IMGUI_IMPL_API void ImGui_Marmalade_NewFrame(); 16 IMGUI_IMPL_API void ImGui_Marmalade_RenderDrawData(ImDrawData* draw_data); 17 18 // Use if you want to reset your rendering device without losing ImGui state. 19 IMGUI_IMPL_API void ImGui_Marmalade_InvalidateDeviceObjects(); 20 IMGUI_IMPL_API bool ImGui_Marmalade_CreateDeviceObjects(); 21 22 // Callbacks (installed by default if you enable 'install_callbacks' during initialization) 23 // You can also handle inputs yourself and use those as a reference. 24 IMGUI_IMPL_API int32 ImGui_Marmalade_PointerButtonEventCallback(void* system_data, void* user_data); 25 IMGUI_IMPL_API int32 ImGui_Marmalade_KeyCallback(void* system_data, void* user_data); 26 IMGUI_IMPL_API int32 ImGui_Marmalade_CharCallback(void* system_data, void* user_data); 27