Skip to content

Commit

Permalink
🧼 [Particles] Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Jan 10, 2024
1 parent b73cdb6 commit 2d8fd7b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/ModulesGraph/ModulesGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ struct ModulesGraphNode {
Cool::RenderTarget render_target{};

private:
// TODO(Particles) Think about how we serialize this
friend class cereal::access;
template<class Archive>
void serialize(Archive& archive)
Expand All @@ -46,15 +45,17 @@ class ModulesGraph {

void update(UpdateContext_Ref);
void render(Cool::RenderTarget&, Module::RenderParams, UpdateContext_Ref, Cool::DirtyFlagFactory_Ref dirty_flag_factory);

void trigger_rerender_all(Cool::SetDirty_Ref);

[[nodiscard]] auto is_empty() const -> bool { return _nodes_editor.is_empty(); }
auto graph() -> Cool::NodesGraph& { return _nodes_editor.graph(); } // TODO(Modules) Is this needed?
auto regenerate_code_flag() -> Cool::DirtyFlag& { return _regenerate_code_flag; } // TODO(Modules) Is this needed?
auto nodes_config(Ui_Ref, Cool::NodesLibrary&) const -> NodesConfig;
[[nodiscard]] auto graph() -> Cool::NodesGraph& { return _nodes_editor.graph(); }
[[nodiscard]] auto regenerate_code_flag() -> Cool::DirtyFlag& { return _regenerate_code_flag; }
[[nodiscard]] auto nodes_config(Ui_Ref, Cool::NodesLibrary&) const -> NodesConfig;
void debug_show_nodes_and_links_registries_windows(Ui_Ref ui) const;
/// Function called once on every frame where the time has changed.
void on_time_changed(UpdateContext_Ref);
void on_time_reset();
/// Function called once on every frame where the audio has changed.
void on_audio_changed(UpdateContext_Ref);

Expand All @@ -63,8 +64,6 @@ class ModulesGraph {

auto all_inputs() const -> Cool::AllInputRefsToConst;

void on_time_reset();

private:
void create_and_compile_all_modules(Cool::NodesGraph const&, Cool::NodeId const& root_node_id, UpdateContext_Ref, Cool::DirtyFlagFactory_Ref dirty_flag_factory);
void render_one_module(Module&, Cool::RenderTarget&, Module::RenderParams params);
Expand Down

0 comments on commit 2d8fd7b

Please sign in to comment.