diff options
| author | skal <pascal.massimino@gmail.com> | 2026-01-31 15:57:00 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-01-31 15:57:00 +0100 |
| commit | 9a6cd87164995df93cf3df410ce37721910ce240 (patch) | |
| tree | 04bc3f733ca916ad13ea6304069f63cdacec5399 /src/gpu/demo_effects.cc | |
| parent | 1016d65d4b5bf7cbd05bba4cf79dc2ce172c9fad (diff) | |
feat: Implement Sequence Compiler for data-driven choreography
Adds a 'seq_compiler' tool that converts a text-based timeline (assets/demo.seq) into a generated C++ file. This allows editing effect sequences and timing without modifying engine code. Replaces manual sequence creation with a generated 'LoadTimeline' function.
Diffstat (limited to 'src/gpu/demo_effects.cc')
| -rw-r--r-- | src/gpu/demo_effects.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gpu/demo_effects.cc b/src/gpu/demo_effects.cc index 5fc7c15..869cd12 100644 --- a/src/gpu/demo_effects.cc +++ b/src/gpu/demo_effects.cc @@ -300,15 +300,3 @@ void ParticlesEffect::render(WGPURenderPassEncoder pass, float time, float beat, wgpuRenderPassEncoderDraw(pass, render_pass_.vertex_count, render_pass_.instance_count, 0, 0); } - -std::shared_ptr<Sequence> create_demo_sequence(WGPUDevice device, - WGPUQueue queue, - WGPUTextureFormat format) { - auto seq = std::make_shared<Sequence>(); - // Overlap them for now to replicate original behavior - seq->add_effect(std::make_shared<HeptagonEffect>(device, queue, format), 0.0f, - 1000.0f); - seq->add_effect(std::make_shared<ParticlesEffect>(device, queue, format), - 0.0f, 1000.0f); - return seq; -} |
