axmol/extensions/ImGui/imgui_impl_axis.h

26 lines
912 B
C
Raw Normal View History

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
IMGUI_IMPL_API bool ImGui_ImplGlfw_InitForAdxe(GLFWwindow* window, bool install_callbacks);
IMGUI_IMPL_API void ImGui_ImplGlfw_Shutdown();
IMGUI_IMPL_API void ImGui_ImplGlfw_NewFrame();
/// ImGui adxe render APIs
IMGUI_IMPL_API void ImGui_ImplAdxe_Init();
2021-12-25 10:04:45 +08:00
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
// 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();