summaryrefslogtreecommitdiff
path: root/themes/src/Snowflake.h
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2023-01-22 18:59:38 -0500
committermattkae <mattkae@protonmail.com>2023-01-22 18:59:38 -0500
commit22c7d2cfa31d83eb81c5ab397e287c2212691e71 (patch)
tree38ba6db608beff7cbc1ed476531eb02befd44942 /themes/src/Snowflake.h
parent64a8d78225e6539ca25374596fe5de44e6252a62 (diff)
WIP on Wind Fields, and updated resume
Diffstat (limited to 'themes/src/Snowflake.h')
-rw-r--r--themes/src/Snowflake.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/src/Snowflake.h b/themes/src/Snowflake.h
index 2524483..c147469 100644
--- a/themes/src/Snowflake.h
+++ b/themes/src/Snowflake.h
@@ -4,6 +4,7 @@
#include "types.h"
#include "mathlib.h"
#include "list.h"
+#include "Windfield.hpp"
struct Renderer2d;
struct Vertex2D;
@@ -18,6 +19,7 @@ struct SnowflakeUpdateData {
Vector2 position;
f32 rotateVelocity = 0.f;
f32 rotation = 0;
+ f32 radius;
i32 vtxIdx = 0;
i32 numVertices = 0;
@@ -28,8 +30,8 @@ struct SnowflakeParticleRenderer {
f32 yMax = 0;
f32 windIntervalSeconds = 1.5;
i32 numSnowflakes = 0;
- Vector2 windSpeed;
f32 timeUntilNextWindSeconds = 0;
+ WindField wind;
SnowflakeUpdateData* updateData;
u32 vao;