diff options
| author | hachem <im@hachem.wtf> | 2026-08-24 18:28:39 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-24 18:28:39 +0200 |
| commit | a34c49f103c8950a57687ea3d866c244d95b4414 (patch) | |
| tree | ff268f4a7f52769a252443d6f2822c9814e3bb1c /src/ui/ui_layer.h | |
| parent | 06398a7a176e123506de6e8851866a8bec0b3427 (diff) | |
[docs]: added a few comments cause i wont be able to read this in a week's time
Diffstat (limited to 'src/ui/ui_layer.h')
| -rw-r--r-- | src/ui/ui_layer.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ui/ui_layer.h b/src/ui/ui_layer.h index 15b5ff8..b913bc4 100644 --- a/src/ui/ui_layer.h +++ b/src/ui/ui_layer.h @@ -5,9 +5,9 @@ namespace Donut { - // The application's docking shell. Draws a main menu bar and a full-viewport + // the application's docking shell. draws a main menu bar and a full-viewport // dock space with a pass-through centre (the live 3D render shows through the - // middle), then a set of dockable tool panels. Ships a few default layouts + // middle), then a set of dockable tool panels. ships a few default layouts // built with the DockBuilder API and lets the user rearrange, hide, or restore // panels like a normal desktop app. draw() returns the View the RenderPath // should draw this frame. @@ -18,9 +18,9 @@ namespace Donut auto draw(const UIContext& ctx) -> View; private: - // Which 3D view fills the pass-through centre. + // which 3D view fills the pass-through centre. enum class Mode { Scene, Simulation }; - // A named default arrangement of the panels. + // a named default arrangement of the panels. enum class Layout { Simulation, SceneEditing, Export }; auto draw_menu_bar(const UIContext& ctx) -> void; @@ -39,7 +39,7 @@ namespace Donut bool m_rebuild_layout = false; // rebuild the dock tree next frame bool m_first_frame = true; // seed the default layout once, if no saved one - // Panel visibility (defaults match the Simulation layout the app opens in). + // panel visibility (defaults match the Simulation layout the app opens in). bool m_show_outliner = false; bool m_show_properties = false; bool m_show_black_hole = true; @@ -47,13 +47,13 @@ namespace Donut bool m_show_export = false; bool m_show_stats = true; - // Properties-panel gizmo op (0 = translate, 1 = scale); cast in the .cpp. + // properties-panel gizmo op (0 = translate, 1 = scale); cast in the .cpp. int m_gizmo_op = 0; - // Settings panel. + // settings panel. float m_ui_scale = 1.0f; - // Export panel. + // export panel. bool m_exp_color = true, m_exp_redshift = false, m_exp_temperature = false, m_exp_impact = false; int m_exp_resolution = 1, m_exp_format = 0; int m_exp_written = 0; bool m_exp_reported = false; |
