From 22c7d2cfa31d83eb81c5ab397e287c2212691e71 Mon Sep 17 00:00:00 2001 From: mattkae Date: Sun, 22 Jan 2023 18:59:38 -0500 Subject: WIP on Wind Fields, and updated resume --- themes/src/Snowflake.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'themes/src/Snowflake.h') 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; -- cgit v1.2.1