Enable docking
This commit is contained in:
parent
8d990a0132
commit
b36a782823
1 changed files with 3 additions and 0 deletions
|
|
@ -27,9 +27,12 @@ Graphics::GUI::~GUI() {
|
|||
|
||||
void Graphics::GUI::init(Window* window) {
|
||||
IMGUI_CHECKVERSION();
|
||||
|
||||
mContext->ctx = ImGui::CreateContext();
|
||||
mContext->io = &ImGui::GetIO();
|
||||
|
||||
mContext->io->ConfigFlags |= ImGuiConfigFlags_DockingEnable;
|
||||
|
||||
// Initialize ImGui with GLFW and OpenGL
|
||||
ImGui_ImplGlfw_InitForOpenGL(window->getContext()->window, true);
|
||||
ImGui_ImplOpenGL3_Init("#version 330");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue