xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
xcal
render
impl
opengl
ui
imguiglfw3opengl3backend.cc
浏览该文件的文档.
1
#include <imgui_impl_glfw.h>
2
#include <imgui_impl_opengl3.h>
3
4
#include <
xcal/render/impl/opengl/ui/imguiglfw3opengl3backend.hpp
>
5
6
void
xcal::render::opengl::ui::ImGuiGlfw3OpenGL3Backend::init
() {
7
ImGui_ImplGlfw_InitForOpenGL(window_,
true
);
8
ImGui_ImplOpenGL3_Init(
"#version 330 core"
);
9
}
10
void
xcal::render::opengl::ui::ImGuiGlfw3OpenGL3Backend::deinit
() {
11
ImGui_ImplOpenGL3_Shutdown();
12
ImGui_ImplGlfw_Shutdown();
13
};
14
void
xcal::render::opengl::ui::ImGuiGlfw3OpenGL3Backend::new_frame
() {
15
ImGui_ImplOpenGL3_NewFrame();
16
ImGui_ImplGlfw_NewFrame();
17
}
18
void
xcal::render::opengl::ui::ImGuiGlfw3OpenGL3Backend::draw_data
() {
19
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
20
};
xcal::render::opengl::ui::ImGuiGlfw3OpenGL3Backend::draw_data
void draw_data() override
Definition
imguiglfw3opengl3backend.cc:18
xcal::render::opengl::ui::ImGuiGlfw3OpenGL3Backend::new_frame
void new_frame() override
Definition
imguiglfw3opengl3backend.cc:14
xcal::render::opengl::ui::ImGuiGlfw3OpenGL3Backend::init
void init() override
Definition
imguiglfw3opengl3backend.cc:6
xcal::render::opengl::ui::ImGuiGlfw3OpenGL3Backend::deinit
void deinit() override
Definition
imguiglfw3opengl3backend.cc:10
imguiglfw3opengl3backend.hpp
生成于 2025年 九月 19日 星期五 21:12:12 , 为 xcal使用
1.9.8