axmol/extensions/ImGuiEXT/imgui_impl_adxe.h

27 lines
1.0 KiB
C
Raw Normal View History

2021-09-26 19:56:34 +08:00
#pragma once
#include "imgui/imgui.h"
typedef void (*ImGuiImplCocos2dxLoadFontFun)(void* userdata);
2021-12-25 10:04:45 +08:00
IMGUI_IMPL_API bool ImGui_ImplAdxe_Init(bool install_callbacks);
IMGUI_IMPL_API void ImGui_ImplAdxe_Shutdown();
IMGUI_IMPL_API void ImGui_ImplAdxe_NewFrame();
IMGUI_IMPL_API void ImGui_ImplAdxe_RenderDrawData(ImDrawData* draw_data);
IMGUI_IMPL_API void ImGui_ImplAdxe_RenderPlatform();
2021-09-26 19:56:34 +08:00
// Called by Init/NewFrame/Shutdown
// TODO: maybe hide for internal use only
2021-12-25 10:04:45 +08:00
IMGUI_IMPL_API bool ImGui_ImplAdxe_CreateDeviceObjects();
IMGUI_IMPL_API void ImGui_ImplAdxe_DestroyDeviceObjects();
2021-09-26 19:56:34 +08:00
// TODO: check whether needs public this API
2021-12-25 10:04:45 +08:00
IMGUI_IMPL_API bool ImGui_ImplAdxe_CreateFontsTexture();
IMGUI_IMPL_API void ImGui_ImplAdxe_DestroyFontsTexture();
2021-09-26 19:56:34 +08:00
// Get FontTexture object cocos2d::Texture2D*
2021-12-25 10:04:45 +08:00
IMGUI_IMPL_API void ImGui_ImplAdxe_SetCustomFontLoader(ImGuiImplCocos2dxLoadFontFun fun, void* userdata);
IMGUI_IMPL_API void* ImGui_ImplAdxe_GetFontsTexture();
2021-09-26 19:56:34 +08:00
// Sets Device objects dirty
2021-12-25 10:04:45 +08:00
IMGUI_IMPL_API void ImGui_ImplAdxe_SetDeviceObjectsDirty();