From 2669a213fce420bd3b531e50286ab90f5670e0f7 Mon Sep 17 00:00:00 2001 From: jonathan santis Date: Thu, 28 Nov 2024 11:50:49 +0100 Subject: [PATCH] sdf --- src/main.zig | 3 ++- zig-out/bin/raylib-test | Bin 5147008 -> 5147016 bytes 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index a7f8bc9..c5d38fd 100644 --- a/src/main.zig +++ b/src/main.zig @@ -205,12 +205,13 @@ pub fn main() anyerror!void { rl.beginBlendMode(rl.BlendMode.blend_additive); - rl.endBlendMode(); + plotStr = try std.fmt.bufPrint(&plotStrBuf,"{d}, {d}, {d}, {d}\n",.{emitter.particles[0].acceleration.a.x,emitter.particles[0].position.a.x,emitter.particles[0].velocity.a.x,emitter.particles[0].show}); try plot.log(file,plotStr); emitter.update(texture); + rl.endBlendMode(); } plot.close(file); } diff --git a/zig-out/bin/raylib-test b/zig-out/bin/raylib-test index d83ced35a85d6ab8625a1485c03f29fa07351dbe..2e848b41b943b1055d32bed0d01db4b81fe4cd4f 100755 GIT binary patch delta 3322 zcmZ9N3slrq8o=-WKg{qC<^>E-hldZqQD&U?17-$P)B*1hDj-rWq9P#%7>H6SqSDBc zt7Q7^Zfd%^rh6*$XnW7eRBY|UR<3OBs&%rgUE47;Ei0i~XTKSq?VR(Qd%ws1?)U%h zcmMy5JKx~9B0DB?z3rL~4cDRJJ2avWP1x%iaf~lE?`@u_n+Pe!(TU^!cX+ad&GU(W zUdh$6qHo1UN#tZg$f0mTjui9ouvRiYLXC<(RH)~JdqA9|xr=k@e4gas zld=5)g|1ftJ@*t!nKdpbom0TMwB94!8r?13%~}vih4GUvOvTkR0)fD-E1qqx2S>ho^7(Wl>UG}2|QAvkZXgTQlWsez_p}TN7997V<6ulP+nR9&pCvN zTs-{QA!Kk$xaJThC$gEM;6AhQ`9k}Y+$!;GTffzR7E-c>hH=|#xZr-pX!dWu69{;^ zI?8dbP>QSJNVZ^*otTwO6se@t(|N;x1-{4@a-(1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