Skip to content

Commit

Permalink
Merge pull request #305 from carboncopies/303-create-batch-import-system
Browse files Browse the repository at this point in the history
303 create batch import system
  • Loading branch information
datacrystals authored Aug 16, 2022
2 parents 47f3c06 + 07a13f7 commit ad37e1a
Show file tree
Hide file tree
Showing 32 changed files with 1,369 additions and 939 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ add_subdirectory(${SRC_DIR}/Core/Utils/ERS_CLASS_HardwareInformation)
add_subdirectory(${SRC_DIR}/Core/Utils/ERS_CLASS_InputOutputSubsystem)
add_subdirectory(${SRC_DIR}/Core/Utils/ERS_CLASS_ArgumentParser)
add_subdirectory(${SRC_DIR}/Core/Utils/ERS_CLASS_GPURequest)
add_subdirectory(${SRC_DIR}/Core/Utils/ERS_CLASS_ExternalModelLoader)
add_subdirectory(${SRC_DIR}/Core/Utils/ERS_CLASS_ModelImporter)

add_subdirectory(${SRC_DIR}/Core/Manager/ERS_FramerateManager)
add_subdirectory(${SRC_DIR}/Core/Manager/ERS_SceneManager)
Expand Down Expand Up @@ -93,6 +95,7 @@ add_subdirectory(${SRC_DIR}/Core/Structures/ERS_STRUCT_SystemUtils)
add_subdirectory(${SRC_DIR}/Core/Structures/ERS_STRUCT_ProjectUtils)
add_subdirectory(${SRC_DIR}/Core/Structures/ERS_STRUCT_Project)
add_subdirectory(${SRC_DIR}/Core/Structures/ERS_STRUCT_ControllerSettings)
add_subdirectory(${SRC_DIR}/Core/Structures/ERS_STRUCT_ModelWriterData)
add_subdirectory(${SRC_DIR}/Core/Structures/ERS_STRUCT_ShaderProgramAssetIDs)
add_subdirectory(${SRC_DIR}/Core/Structures/ERS_STRUCT_RGBColor)
add_subdirectory(${SRC_DIR}/Core/Structures/ERS_STRUCT_Viewport)
Expand Down Expand Up @@ -132,6 +135,7 @@ target_link_libraries(${PROJECT_NAME}
# Internal Libs
ERS_CLASS_GPURequest
ERS_CLASS_LoggingSystem
ERS_CLASS_ModelImporter


ERS_CLASS_HardwareInformation
Expand Down
4 changes: 0 additions & 4 deletions Source/Core/Editor/Menus/GUI_Menu_File/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
# This file is part of the BrainGenix-ERS Environment Rendering System #
########################################################################

# Add Subdirs
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/Utils)

# Create Library (Name Should Be Parent Dir Name)
add_library(Menu_File

Expand All @@ -30,7 +27,6 @@ target_link_libraries(Menu_File
ERS_STRUCT_SystemUtils
ERS_STRUCT_ProjectUtils

ERS_Editor_ImportAsset
ERS_Editor_WindowManager

ERS_ProjectLoader
Expand Down
10 changes: 4 additions & 6 deletions Source/Core/Editor/Menus/GUI_Menu_File/GUI_Menu_File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ GUI_Menu_File::GUI_Menu_File(ERS_STRUCT_SystemUtils* SystemUtils, ERS_CLASS_Scen
SystemUtils_->Logger_->Log("Editor Setting Up File Menu", 4);

SceneWriter_ = std::make_unique<SceneWriter>(SystemUtils_);
ImportAsset_ = std::make_unique<GUI_ImportAsset>(SystemUtils_);


}
Expand Down Expand Up @@ -54,11 +53,12 @@ void GUI_Menu_File::Draw() {

ImGui::MenuItem("Project Settings", "", &Windows_->GUI_Window_ProjectSettings_->Enabled_);
ImGui::MenuItem("About", "", &Windows_->GUI_Window_About_->Enabled_);

ImGui::Separator();

if (ImGui::MenuItem("Import Model")) {
ImportAsset_->OpenFileDialog();
}
ImGui::MenuItem("Import Model", "", &Windows_->GUI_Window_ImportModel_->Enabled_);
ImGui::MenuItem("Import Models In Directory", "", &Windows_->GUI_Window_ImportModelDirectory_->Enabled_);

ImGui::Separator();

// Exit Options
Expand All @@ -71,7 +71,5 @@ void GUI_Menu_File::Draw() {
}


// Draw Subwindows
ImportAsset_->Draw();

}
2 changes: 0 additions & 2 deletions Source/Core/Editor/Menus/GUI_Menu_File/GUI_Menu_File.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <ERS_STRUCT_SystemUtils.h>
#include <ERS_STRUCT_ProjectUtils.h>

#include <GUI_ImportAsset.h>

#include <ERS_ProjectLoader.h>
#include <ERS_SceneWriter.h>
Expand All @@ -50,7 +49,6 @@ class GUI_Menu_File {

std::unique_ptr<SceneWriter> SceneWriter_; /**<Scene Writer Instance Pointer*/
ERS_CLASS_SceneManager* SceneManager_; /**<Scene Manager Instance Pointer*/
std::unique_ptr<GUI_ImportAsset> ImportAsset_; /**<Pointer To Asset Importer System*/
ERS_STRUCT_ProjectUtils* ProjectUtils_; /**<Pointer To Project Utils Instance*/


Expand Down
5 changes: 0 additions & 5 deletions Source/Core/Editor/Menus/GUI_Menu_File/Utils/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit ad37e1a

Please sign in to comment.