You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
/******************************************************************************
|
|
|
|
|
* 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 <game/world/world.h>
|
|
|
|
|
#include <dearimgui/imgui.h>
|
|
|
|
|
|
|
|
|
|
namespace lunarium
|
|
|
|
|
{
|
|
|
|
|
namespace editor
|
|
|
|
|
{
|
|
|
|
|
WorldView::WorldView()
|
|
|
|
|
: Panel(PT_WORLD_VIEW, true), mpWorld(nullptr)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool WorldView::DoFrame()
|
|
|
|
|
{
|
|
|
|
|
if (!mIsOpen)
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
if (!ImGui::Begin("World View", &mIsOpen, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoScrollbar))
|
|
|
|
|
{
|
|
|
|
|
ImGui::End();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ImGui::End();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|