Boids/Phix: Difference between revisions

m
Oops, missed one.
m (Phix/pGUI)
m (Oops, missed one.)
 
(2 intermediate revisions by 2 users not shown)
Line 1:
Only uses about 2.5% cpu with 60 boids at 25 FPS. Split into two source files, for no particular reason.
{{libheader|Phix/pGUI}}
<syntaxhighlight lang="phix">--
<lang Phix>--
-- demo\pGUI\boids3d.exw
--
Line 347:
IupVbox({boids_label,boids_txt},"NORMALIZESIZE=HORIZONTAL"),
IupVbox({shadow_check,restart},"NORMALIZESIZE=HORIZONTAL")})
{} = IupDestroy(IupNormalizer({speed_label,shadow_check},"NORMALIZE=VERTICAL"))
dialog = IupDialog(IupVbox({canvas,hbox}, "MARGIN=5x5, GAP=5"),"MINSIZE=455x170")
IupSetAttribute(dialog,"TITLE",TITLE);
Line 362:
IupClose()
end procedure
main()</langsyntaxhighlight>
 
<syntaxhighlight lang="phix">--
<lang Phix>--
-- demo\pGUI\boids3d.e
-- ===================
Line 651:
end for
boidsn = boidsnp1
end procedure</langsyntaxhighlight>
9,476

edits