Moving source files to a src folder
This commit is contained in:
		@ -1,30 +1,33 @@
 | 
			
		||||
#include "GUI.h"
 | 
			
		||||
 | 
			
		||||
void SceneExplorer(Scene& scene, std::string PanelName) {
 | 
			
		||||
    ImGui::Begin(PanelName.c_str());
 | 
			
		||||
    if (ImGui::Begin(PanelName.c_str())) {
 | 
			
		||||
        ImGui::ListBoxHeader("##ObjectList");
 | 
			
		||||
 | 
			
		||||
    ImGui::ListBoxHeader("##ObjectList");
 | 
			
		||||
        Node& current = scene.GetRoot();
 | 
			
		||||
 | 
			
		||||
    Node& current = scene.GetRoot();
 | 
			
		||||
        Node* next = ¤t;
 | 
			
		||||
 | 
			
		||||
    Node* next = ¤t;
 | 
			
		||||
        // Show first node
 | 
			
		||||
        ImGui::Selectable(next->name.c_str(), true);
 | 
			
		||||
 | 
			
		||||
    // Show first node
 | 
			
		||||
    ImGui::Selectable(next->name.c_str(), true);
 | 
			
		||||
        ImGui::Indent();
 | 
			
		||||
 | 
			
		||||
    ImGui::Indent();
 | 
			
		||||
 | 
			
		||||
    if (next->children.size() != 0) {
 | 
			
		||||
        for (auto child : next->children) 
 | 
			
		||||
        {
 | 
			
		||||
            std::string& name = child->name;
 | 
			
		||||
            ImGui::Selectable(name.c_str(), false);
 | 
			
		||||
        if (next->children.size() != 0) {
 | 
			
		||||
            for (auto child : next->children)
 | 
			
		||||
            {
 | 
			
		||||
                std::string& name = child->name;
 | 
			
		||||
                ImGui::Selectable(name.c_str(), false);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    ImGui::ListBoxFooter();
 | 
			
		||||
        ImGui::ListBoxFooter();
 | 
			
		||||
 | 
			
		||||
      
 | 
			
		||||
    }  
 | 
			
		||||
    ImGui::End();
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CameraTool(Camera* cam) {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user