Minor - Smart pointer and switch from composition to aggregation for object relation with modelclass - V11.3.0

This commit is contained in:
2025-06-19 17:15:27 +02:00
parent ae3fc21ffc
commit f5331444cb
14 changed files with 175 additions and 407 deletions

View File

@@ -57,7 +57,7 @@ public:
ImVec2 GetWindowSize() const { return windowSize; }
// Getters
void SetApp(application_class* app) { app_ = app; }
void SetApp(std::shared_ptr<application_class> app) { app_ = app; }
// Shader toggles
@@ -75,7 +75,7 @@ private:
std::vector<widget_entry> widgets_;
application_class* app_;
std::shared_ptr<application_class> app_;
scene_manager* scene_manager_;
stats* stats_;