/****************************************************************************** * File - worldView.cpp * Author - Joey Pollack * Date - 2022/01/26 (y/m/d) * Mod Date - 2022/01/26 (y/m/d) * Description - A rendered view of the world ******************************************************************************/ #include "worldView.h" #include #include #include #include "../panel_manager.h" namespace lunarium { namespace editor { WorldView::WorldView() : Panel(PT_WORLD_VIEW, true), mpWorld(nullptr) { } bool WorldView::DoFrame() { if (!mIsOpen) return false; //ImGui::SetNextWindowPosition() ImGui::SetNextWindowDockID(PanelManager::GetInstance().GetDockSpaces().Center, ImGuiCond_Appearing); if (!ImGui::Begin("World View", &mIsOpen, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoScrollbar)) { ImGui::End(); return false; } ImGui::End(); return true; } } }