From e05b8c0ea02a1d6c230f2f7b7147d219e1543d37 Mon Sep 17 00:00:00 2001 From: s-ol Date: Tue, 22 Oct 2019 00:04:19 +0200 Subject: add viewport support --- src/main.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index 79dab91..f3d342a 100644 --- a/src/main.zig +++ b/src/main.zig @@ -22,7 +22,7 @@ pub fn main() !void { c.glfwWindowHint(c.GLFW_CONTEXT_VERSION_MAJOR, 3); c.glfwWindowHint(c.GLFW_CONTEXT_VERSION_MINOR, 2); - c.glfwWindowHint(c.GLFW_OPENGL_FORWARD_COMPAT, c.GL_TRUE); + c.glfwWindowHint(c.GLFW_OPENGL_FORWARD_COMPAT, c.GLFW_TRUE); c.glfwWindowHint(c.GLFW_OPENGL_DEBUG_CONTEXT, debug_gl.is_on); c.glfwWindowHint(c.GLFW_OPENGL_PROFILE, c.GLFW_OPENGL_CORE_PROFILE); // c.glfwWindowHint(c.GLFW_DEPTH_BITS, 0); @@ -44,13 +44,13 @@ pub fn main() !void { const io = c.igGetIO(); io.*.ConfigFlags |= @enumToInt(c.ImGuiConfigFlags_NavEnableKeyboard); - // io.*.ConfigFlags |= @enumToInt(c.ImGuiConfigFlags_DockingEnable); - // io.*.ConfigFlags |= @enumToInt(c.ImGuiConfigFlags_ViewportsEnable); + io.*.ConfigFlags |= @enumToInt(c.ImGuiConfigFlags_DockingEnable); + io.*.ConfigFlags |= @enumToInt(c.ImGuiConfigFlags_ViewportsEnable); const style = c.igGetStyle(); c.igStyleColorsDark(style); - if (false and io.*.ConfigFlags & @enumToInt(c.ImGuiConfigFlags_ViewportsEnable) != 0) { + if (io.*.ConfigFlags & @enumToInt(c.ImGuiConfigFlags_ViewportsEnable) != 0) { style.*.WindowRounding = 0.0; style.*.Colors[@enumToInt(c.ImGuiCol_WindowBg)].w = 1.0; } -- cgit v1.2.3