25 lines
678 B
C++
25 lines
678 B
C++
#include "editor/panel/menu_bar_panel.h"
|
|
#include <imgui.h>
|
|
|
|
namespace api {
|
|
void MenuBarPanel::DrawPanel(FrameGraph& graph, RenderEditorContext& context)
|
|
{
|
|
// 面板大小和位置
|
|
if (ImGui::BeginMenu("Tools")) {
|
|
if (ImGui::MenuItem("Performance Analyzer")) {
|
|
// 显示性能分析工具
|
|
}
|
|
if (ImGui::MenuItem("Debug Console")) {
|
|
// 显示调试控制台
|
|
}
|
|
ImGui::EndMenu();
|
|
}
|
|
|
|
if (ImGui::BeginMenu("Help")) {
|
|
if (ImGui::MenuItem("About")) {
|
|
// 显示关于信息
|
|
}
|
|
ImGui::EndMenu();
|
|
}
|
|
}
|
|
} |