3D Engine/PanelHierarchy.cpp
//Function that draws all the console
Function that draws all the console
Function that draws all the console
void PanelHierarchy::Draw()
{
	ImGui::Begin("Game Object Hierarchy", &active,
		ImGuiWindowFlags_NoResize |
		ImGuiWindowFlags_NoFocusOnAppearing |
		ImGuiWindowFlags_HorizontalScrollbar | 
		ImGuiWindowFlags_NoMove);
	ImGui::SetWindowPos({ 0.0f, 20.0f });
	ImGui::SetWindowSize(ImVec2((225*App->window->width)/1280, (500*App->window->height)/1024), ImGuiCond_Always);
	App->scene_intro->root_gameObjects->BlitGameObjectHierarchy();
	ImGui::End();
}
void PanelHierarchy :: Draw ( ) { ImGui :: Begin ( " " , & active , ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_HorizontalScrollbar | ImGuiWindowFlags_NoMove ) ; ImGui :: SetWindowPos ( { 0.0f , 20.0f } ) ; ImGui :: SetWindowSize ( ImVec2 ( ( 225 * App -> window -> width ) / 1280 , ( 500 * App -> window -> height ) / 1024 ) , ImGuiCond_Always ) ; App -> scene_intro -> root_gameObjects -> BlitGameObjectHierarchy ( ) ; ImGui :: End ( ) ; }
Function that draws all the console
Function that draws all the console