How christt105/elit3d works
Main Components
• Core Application – Represent the “Core” directory (Application.cpp, Main.cpp, Globals.h) as the engine’s entry point and management of the overall application lifecycle.
• Editor Panels – These are the UI components located in the “Panels” directory (with panels such as p1About, p1Configuration, p1Console, p1DebugResources, p1Inspector, p1Layers, p1ObjectEditor, p1Objects, p1Resources, p1Scene, p1Tileset, and p1Tools) and form the graphical front end through which the user interacts with the tool.
• Objects/Components – The “Objects” directory (with Components like c1Material, c1Mesh, c1Transform, etc.) to represent the editable entities within the scene.
• Resources – Managed in the “Resources” folder (r1Map, r1Mesh, r1Model, r1Object, r1Shader, r1Texture, r1Tileset, r1Tileset3d). These components load and manage the data assets used in the editor.
• External Tools/Third-Party Libraries – Group the “ExternalTools” subdirectories (SDL2, Assimp, DevIL, GLEW, ImGui, JSON, MathGeoLib, etc.) into one section that represents dependencies for rendering, UI, file importing, image processing, and math operations.
• Tools Subsystem – Another layer for “Tools” (FileSystem, Importers, Map, OpenGL helpers, System information, Logger, Timer, etc.) which provide utility functions and services that support the core modules.
• Arrowed links from the UI panels (editor front-end) to modules such as m1Events and m1GUI—indicating that user inputs are captured and forwarded to the core engine.
• Interaction flows between the “Tools” subsystem (like FileSystem, Logger, OSUtils, Profiler) and the Core/Modules. For instance, the FileSystem is used by both the Core and the Importers when loading map or model data.
Architectural Patterns / Design Principles
• Layered Architecture: The editor naturally fits a layered structure—from the low-level External Libraries (hardware and OS abstraction, graphical rendering, asset loading) up to the Tools subsystem, then the Engine Core and Its Modules, with the Editor Panels sitting at the top as the user interface layer.
• Event and Input Flow: Show how user interaction flows from the Panels (UI) to modules (m1Events, m1Input) and then into updating the scene or triggering rendering.
Relevant Technologies, Frameworks, or Libraries
• SDL2 – For window management, input handling, and cross-platform compatibility.
• OpenGL/GLEW – For rendering; m1Render3D interacts closely with these libraries.
• ImGui – For immediate mode GUI drawing in the editor panels.
• Assimp – For importing 3D model assets.
• DevIL – For image and texture management.
• MathGeoLib – To support geometric calculations and collision detection.
• Other utilities, such as PCG (random engine), JSON (data handling), and pugiXML for configuration or resource files.