<NME> post_process_render_pipeline_manager_scene_component.cpp
<BEF> #include <babylon/postprocesses/renderpipeline/post_process_render_pipeline_manager_scene_component.h>

#include <babylon/engines/scene.h>
#include <babylon/postprocesses/renderpipeline/post_process_render_pipeline_manager.h>

namespace BABYLON {

PostProcessRenderPipelineManagerSceneComponent::
  PostProcessRenderPipelineManagerSceneComponent(Scene* iScene)
{
  ISceneComponent::name = PostProcessRenderPipelineManagerSceneComponent::name;
  scene                 = iScene;
}

PostProcessRenderPipelineManagerSceneComponent::
PostProcessRenderPipelineManagerSceneComponent::~PostProcessRenderPipelineManagerSceneComponent() = default;

void PostProcessRenderPipelineManagerSceneComponent::_register()
{
  scene->_gatherRenderTargetsStage.registerStep(
    SceneComponentConstants::
      STEP_GATHERRENDERTARGETS_POSTPROCESSRENDERPIPELINEMANAGER,
    this, [this](const std::vector<RenderTargetTexturePtr>& /*renderTargets*/) {
      _gatherRenderTargets();
    });
}

void PostProcessRenderPipelineManagerSceneComponent::rebuild()
{
  if (scene->postProcessRenderPipelineManager()) {
    scene->postProcessRenderPipelineManager()->_rebuild();
  }
}

void PostProcessRenderPipelineManagerSceneComponent::dispose()
{
  if (scene->postProcessRenderPipelineManager()) {
    scene->postProcessRenderPipelineManager()->dispose();
  }
}

void PostProcessRenderPipelineManagerSceneComponent::_gatherRenderTargets()
{
  if (scene->postProcessRenderPipelineManager()) {
    scene->postProcessRenderPipelineManager()->update();
  }
}

} // end of namespace BABYLON

<MSG> Formatting, using macro for forward declarations and added lambda return type

<DFF> @@ -5,22 +5,22 @@
 
 namespace BABYLON {
 
-PostProcessRenderPipelineManagerSceneComponent::
-  PostProcessRenderPipelineManagerSceneComponent(Scene* iScene)
+PostProcessRenderPipelineManagerSceneComponent::PostProcessRenderPipelineManagerSceneComponent(
+  Scene* iScene)
 {
   ISceneComponent::name = PostProcessRenderPipelineManagerSceneComponent::name;
   scene                 = iScene;
 }
 
-PostProcessRenderPipelineManagerSceneComponent::
-PostProcessRenderPipelineManagerSceneComponent::~PostProcessRenderPipelineManagerSceneComponent() = default;
+PostProcessRenderPipelineManagerSceneComponent::PostProcessRenderPipelineManagerSceneComponent::
+  ~PostProcessRenderPipelineManagerSceneComponent()
+  = default;
 
 void PostProcessRenderPipelineManagerSceneComponent::_register()
 {
   scene->_gatherRenderTargetsStage.registerStep(
-    SceneComponentConstants::
-      STEP_GATHERRENDERTARGETS_POSTPROCESSRENDERPIPELINEMANAGER,
-    this, [this](const std::vector<RenderTargetTexturePtr>& /*renderTargets*/) {
+    SceneComponentConstants::STEP_GATHERRENDERTARGETS_POSTPROCESSRENDERPIPELINEMANAGER, this,
+    [this](const std::vector<RenderTargetTexturePtr>& /*renderTargets*/) -> void {
       _gatherRenderTargets();
     });
 }

{'addition_count': 7, 'commit_subject': 'Formatting, using macro for forward declarations and added lambda return type', 'deletion_count': 7, 'file_extension': '.cpp', 'lang': 'cpp', 'license': 'apache-2.0', 'repo_name': 'samdauwe/BabylonCpp'}