1.6 KB、34行 生 Blame 履歴
1// dear imgui: Null Platform+Renderer Backends
2// This is designed if you need to use a blind Dear Imgui context with no input and no output.
3
4// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this.
5// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need.
6// Learn about Dear ImGui:
7// - FAQ https://dearimgui.com/faq
8// - Getting Started https://dearimgui.com/getting-started
9// - Documentation https://dearimgui.com/docs (same as your local docs/ folder).
10// - Introduction, links and more at the top of imgui.cpp
11
12#pragma once
13#include "imgui.h" // IMGUI_IMPL_API
14#ifndef IMGUI_DISABLE
15
16// Follow "Getting Started" link and check examples/ folder to learn about using backends!
17
18// Null = NullPlatform + NullRender
19IMGUI_IMPL_API bool ImGui_ImplNull_Init();
20IMGUI_IMPL_API void ImGui_ImplNull_Shutdown();
21IMGUI_IMPL_API void ImGui_ImplNull_NewFrame();
22
23// Null platform only (single screen, fixed timestep, no inputs)
24IMGUI_IMPL_API bool ImGui_ImplNullPlatform_Init();
25IMGUI_IMPL_API void ImGui_ImplNullPlatform_Shutdown();
26IMGUI_IMPL_API void ImGui_ImplNullPlatform_NewFrame();
27
28// Null renderer only (no output)
29IMGUI_IMPL_API bool ImGui_ImplNullRender_Init();
30IMGUI_IMPL_API void ImGui_ImplNullRender_Shutdown();
31IMGUI_IMPL_API void ImGui_ImplNullRender_NewFrame();
32IMGUI_IMPL_API void ImGui_ImplNullRender_RenderDrawData(ImDrawData* draw_data);
33
34#endif // #ifndef IMGUI_DISABLE