Enable docking

This commit is contained in:
IlushaShurupov 2023-08-20 19:42:22 +03:00 committed by IlyaShurupov
parent 8d990a0132
commit b36a782823

View file

@ -27,9 +27,12 @@ Graphics::GUI::~GUI() {
void Graphics::GUI::init(Window* window) { void Graphics::GUI::init(Window* window) {
IMGUI_CHECKVERSION(); IMGUI_CHECKVERSION();
mContext->ctx = ImGui::CreateContext(); mContext->ctx = ImGui::CreateContext();
mContext->io = &ImGui::GetIO(); mContext->io = &ImGui::GetIO();
mContext->io->ConfigFlags |= ImGuiConfigFlags_DockingEnable;
// Initialize ImGui with GLFW and OpenGL // Initialize ImGui with GLFW and OpenGL
ImGui_ImplGlfw_InitForOpenGL(window->getContext()->window, true); ImGui_ImplGlfw_InitForOpenGL(window->getContext()->window, true);
ImGui_ImplOpenGL3_Init("#version 330"); ImGui_ImplOpenGL3_Init("#version 330");