2021-09-26 19:56:34 +08:00
|
|
|
#pragma once
|
2022-02-08 12:43:16 +08:00
|
|
|
#include "imgui.h"
|
|
|
|
|
|
|
|
struct GLFWwindow;
|
2021-09-26 19:56:34 +08:00
|
|
|
|
|
|
|
typedef void (*ImGuiImplCocos2dxLoadFontFun)(void* userdata);
|
|
|
|
|
2022-02-08 12:43:16 +08:00
|
|
|
/// ImGui glfw APIs
|
2022-07-09 22:23:34 +08:00
|
|
|
IMGUI_IMPL_API bool ImGui_ImplGlfw_InitForAxis(GLFWwindow* window, bool install_callbacks);
|
2022-02-08 12:43:16 +08:00
|
|
|
IMGUI_IMPL_API void ImGui_ImplGlfw_Shutdown();
|
|
|
|
IMGUI_IMPL_API void ImGui_ImplGlfw_NewFrame();
|
|
|
|
|
2022-07-09 22:23:34 +08:00
|
|
|
/// ImGui axis render APIs
|
|
|
|
IMGUI_IMPL_API void ImGui_ImplAxis_Init();
|
|
|
|
IMGUI_IMPL_API void ImGui_ImplAxis_Shutdown();
|
|
|
|
IMGUI_IMPL_API void ImGui_ImplAxis_NewFrame();
|
|
|
|
IMGUI_IMPL_API void ImGui_ImplAxis_RenderDrawData(ImDrawData* draw_data);
|
|
|
|
IMGUI_IMPL_API void ImGui_ImplAxis_RenderPlatform();
|
2021-09-26 19:56:34 +08:00
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
// Get FontTexture object axis::Texture2D*
|
2022-07-09 22:23:34 +08:00
|
|
|
IMGUI_IMPL_API void ImGui_ImplAxis_SetCustomFontLoader(ImGuiImplCocos2dxLoadFontFun fun, void* userdata);
|
|
|
|
IMGUI_IMPL_API void* ImGui_ImplAxis_GetFontsTexture();
|
2021-09-26 19:56:34 +08:00
|
|
|
|
|
|
|
// Sets Device objects dirty
|
2022-07-09 22:23:34 +08:00
|
|
|
IMGUI_IMPL_API void ImGui_ImplAxis_SetDeviceObjectsDirty();
|