mirror of https://github.com/axmolengine/axmol.git
26 lines
909 B
C
26 lines
909 B
C
#pragma once
|
|
#include "imgui.h"
|
|
|
|
struct GLFWwindow;
|
|
|
|
typedef void (*ImGuiImplCocos2dxLoadFontFun)(void* userdata);
|
|
|
|
/// ImGui glfw APIs
|
|
IMGUI_IMPL_API bool ImGui_ImplGlfw_InitForAxis(GLFWwindow* window, bool install_callbacks);
|
|
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();
|
|
|
|
// Get FontTexture object axis::Texture2D*
|
|
IMGUI_IMPL_API void ImGui_ImplAxis_SetCustomFontLoader(ImGuiImplCocos2dxLoadFontFun fun, void* userdata);
|
|
IMGUI_IMPL_API void* ImGui_ImplAxis_GetFontsTexture();
|
|
|
|
// Sets Device objects dirty
|
|
IMGUI_IMPL_API void ImGui_ImplAxis_SetDeviceObjectsDirty();
|