summaryrefslogtreecommitdiff
path: root/themes/src/winter/Snowflake.h
diff options
context:
space:
mode:
authorMatt Kosarek <matt.kosarek@canonical.com>2025-12-29 09:34:00 -0500
committerMatt Kosarek <matt.kosarek@canonical.com>2025-12-29 09:34:00 -0500
commitbf4b3a5c35152c1292757134123b3363d0f81bf6 (patch)
tree7796e03d309c43115596f78d553a74f911f82218 /themes/src/winter/Snowflake.h
parent25c93a0ab9c855f75ee48df635fb5422c8eaba95 (diff)
Renamed PascalCase files to snake_case
Diffstat (limited to 'themes/src/winter/Snowflake.h')
-rw-r--r--themes/src/winter/Snowflake.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/themes/src/winter/Snowflake.h b/themes/src/winter/Snowflake.h
deleted file mode 100644
index ad027f6..0000000
--- a/themes/src/winter/Snowflake.h
+++ /dev/null
@@ -1,48 +0,0 @@
-#ifndef SNOWFLAKE_H
-#define SNOWFLAKE_H
-
-#include "../types.h"
-#include "../mathlib.h"
-#include "../list.h"
-#include "Windfield.hpp"
-
-struct Renderer2d;
-struct Vertex2D;
-
-struct SnowflakeLoadParameters {
- i32 numSnowflakes = 480;
- f32 windIntervalSeconds = 1.5f;
-};
-
-struct SnowflakeUpdateData {
- Vector2 velocity;
- Vector2 position;
- f32 rotateVelocity = 0.f;
- f32 rotation = 0;
- f32 radius;
-
- i32 vtxIdx = 0;
- i32 numVertices = 0;
-};
-
-struct SnowflakeParticleRenderer {
- f32 xMax = 0;
- f32 yMax = 0;
- f32 windIntervalSeconds = 1.5;
- i32 numSnowflakes = 0;
- f32 timeUntilNextWindSeconds = 0;
- WindField<100, 100, 10> wind;
- SnowflakeUpdateData* updateData;
-
- u32 vao;
- u32 vbo;
- Mat4x4 model;
- matte::List<Vertex2D> vertices;
-
- void load(SnowflakeLoadParameters params, Renderer2d* renderer);
- void update(f32 dtSeconds);
- void render(Renderer2d* renderer);
- void unload();
-};
-
-#endif