Dear ImGui + SDL input + Vulkan present overlay. 更多...
#include <ImGuiBackend.h>
Public 成员函数 | |
| ImGuiBackend ()=default | |
| Constructs a ImGuiBackend. | |
| ~ImGuiBackend () override | |
| Releases ImGuiBackend resources. | |
| ImGuiBackend (const ImGuiBackend &)=delete | |
| ImGuiBackend & | operator= (const ImGuiBackend &)=delete |
| bool | init (SDL_Window *window, eve::graphics::Graphics *gfx) override |
| Initializes . | |
| void | shutdown () override |
| Shutdown. | |
| bool | isInitialized () const override |
| True when initialized. | |
| void | processEvent (const SDL_Event *event) override |
| Process event. | |
| void | newFrame () override |
| Creates a frame. @ownership Caller deletes unless documented otherwise. | |
| bool | wantCaptureMouse () const override |
| Want capture mouse. | |
| bool | wantCaptureKeyboard () const override |
| Want capture keyboard. | |
| void | setScale (float scale) override |
| Sets the scale. | |
| float | getScale () const override |
| Returns the scale. | |
Public 成员函数 继承自 eve::ui::UIBackend | |
| virtual | ~UIBackend ()=default |
| Releases UIBackend resources. | |
详细描述
Dear ImGui + SDL input + Vulkan present overlay.
在文件 ImGuiBackend.h 第 15 行定义.
构造及析构函数说明
◆ ImGuiBackend() [1/2]
|
default |
Constructs a ImGuiBackend.
◆ ~ImGuiBackend()
|
override |
◆ ImGuiBackend() [2/2]
|
delete |
成员函数说明
◆ getScale()
|
inlineoverridevirtual |
◆ init()
|
overridevirtual |
Initializes .
实现了 eve::ui::UIBackend.
在文件 ImGuiBackend.cpp 第 173 行定义.
引用了 eve::graphics::Graphics::addWindowDestroyedCallback(), eve::ui::applyThemeToImGui(), device, eve::graphics::vulkan::Graphics::getDevice(), eve::ui::globalTheme(), ImGui_ImplWGPU_CreateFontsTexture(), ImGui_ImplWGPU_Init(), eve::ui::setThemeDpiScale(), eve::ui::setThemeUiScale() , 以及 eve::ui::window().
◆ isInitialized()
|
inlineoverridevirtual |
◆ newFrame()
|
overridevirtual |
Creates a frame. @ownership Caller deletes unless documented otherwise.
实现了 eve::ui::UIBackend.
在文件 ImGuiBackend.cpp 第 340 行定义.
引用了 ImGui_ImplWGPU_NewFrame() , 以及 eve::graphics::Graphics::setPresentOverlay().
◆ operator=()
|
delete |
◆ processEvent()
|
overridevirtual |
◆ setScale()
|
overridevirtual |
◆ shutdown()
|
overridevirtual |
Shutdown.
实现了 eve::ui::UIBackend.
在文件 ImGuiBackend.cpp 第 276 行定义.
引用了 eve::graphics::Graphics::getPresentOverlayUser(), ImGui_ImplWGPU_Shutdown() , 以及 eve::graphics::Graphics::setPresentOverlay().
被这些函数引用 ~ImGuiBackend().
◆ wantCaptureKeyboard()
|
overridevirtual |
◆ wantCaptureMouse()
|
overridevirtual |
该类的文档由以下文件生成:
- src/modules/ui/imgui/ImGuiBackend.h
- src/modules/ui/imgui/ImGuiBackend.cpp
Public 成员函数 继承自