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_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();
/// 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
// Get FontTexture object cocos2d::Texture2D*
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
IMGUI_IMPL_API void ImGui_ImplAxis_SetDeviceObjectsDirty();