无边框窗口
This commit is contained in:
@@ -50,10 +50,6 @@ void application::init(const window_params& in_window_params, int argc, char** a
|
||||
int application::run() {
|
||||
while (!g_exit_requested) {
|
||||
glfwPollEvents();
|
||||
g_exit_requested = glfwWindowShouldClose(window_);
|
||||
if (g_exit_requested)
|
||||
break;
|
||||
|
||||
renderer_->new_frame(window_);
|
||||
draw_gui();
|
||||
renderer_->end_frame(window_);
|
||||
@@ -108,6 +104,7 @@ void application::init_glfw() {
|
||||
spdlog::error("Failed to initialize GLFW");
|
||||
return;
|
||||
}
|
||||
glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE);
|
||||
}
|
||||
|
||||
void application::init_imgui() {
|
||||
@@ -119,6 +116,8 @@ void application::init_imgui() {
|
||||
io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls
|
||||
io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking
|
||||
io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows
|
||||
io.ConfigViewportsNoAutoMerge = true;
|
||||
io.ConfigViewportsNoTaskBarIcon = false;
|
||||
ImGui::StyleColorsDark();
|
||||
//ImGui::StyleColorsLight();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user