summaryrefslogtreecommitdiff
path: root/src/effects/rotating_cube_effect.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-16 21:41:59 +0100
committerskal <pascal.massimino@gmail.com>2026-02-16 21:41:59 +0100
commitbb4f36f9c32a1484b62e80630825cbcec3976cad (patch)
treeae6f5cf2df35a19946206e76027b59653fb9a79a /src/effects/rotating_cube_effect.cc
parentd4aa74ed05f8573beaaa53ad20a38605d2daa0ea (diff)
refactor: complete removal of 'Effect' suffix from C++ class names
Update effect class definitions in headers and implementations to match timeline.seq naming convention. All tests passing (34/34). Classes renamed: - PassthroughEffect → Passthrough - GaussianBlurEffect → GaussianBlur - PlaceholderEffect → Placeholder - HeptagonEffect → Heptagon - ParticlesEffect → Particles - RotatingCubeEffect → RotatingCube - Hybrid3DEffect → Hybrid3D - FlashEffect → Flash - PeakMeterEffect → PeakMeter Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/effects/rotating_cube_effect.cc')
-rw-r--r--src/effects/rotating_cube_effect.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/effects/rotating_cube_effect.cc b/src/effects/rotating_cube_effect.cc
index 57f0a83..1f56b8b 100644
--- a/src/effects/rotating_cube_effect.cc
+++ b/src/effects/rotating_cube_effect.cc
@@ -1,5 +1,5 @@
// This file is part of the 64k demo project.
-// It implements RotatingCubeEffect (simplified v2 port).
+// It implements RotatingCube (simplified v2 port).
#include "util/fatal_error.h"
#include "effects/rotating_cube_effect.h"
@@ -7,7 +7,7 @@
#include "gpu/gpu.h"
#include "gpu/shaders.h"
-RotatingCubeEffect::RotatingCubeEffect(const GpuContext& ctx,
+RotatingCube::RotatingCube(const GpuContext& ctx,
const std::vector<std::string>& inputs,
const std::vector<std::string>& outputs)
: Effect(ctx, inputs, outputs), depth_node_(outputs[0] + "_depth") {
@@ -100,19 +100,19 @@ RotatingCubeEffect::RotatingCubeEffect(const GpuContext& ctx,
wgpuBindGroupLayoutRelease(bgl);
}
-RotatingCubeEffect::~RotatingCubeEffect() {
+RotatingCube::~RotatingCube() {
if (bind_group_)
wgpuBindGroupRelease(bind_group_);
if (pipeline_)
wgpuRenderPipelineRelease(pipeline_);
}
-void RotatingCubeEffect::declare_nodes(NodeRegistry& registry) {
+void RotatingCube::declare_nodes(NodeRegistry& registry) {
// Declare depth buffer node
registry.declare_node(depth_node_, NodeType::DEPTH24, -1, -1);
}
-void RotatingCubeEffect::render(WGPUCommandEncoder encoder,
+void RotatingCube::render(WGPUCommandEncoder encoder,
const UniformsSequenceParams& params,
NodeRegistry& nodes) {
rotation_ += 0.016f * 1.5f;