05-14-2005, 09:34 AM
I know nothing about this, but I read somewhere on this forum that it's nice & fast.
Is it possible to sort a udt array with it. I want to use it to sort the drawing order for a billboarding projectile engine.
I have a small udt...
Is there a way to make QSort swap both elements when Dist(i)<Dist(j)? Ummm... Like this...
Is there a way that I can make QSort do that?
Is it possible to sort a udt array with it. I want to use it to sort the drawing order for a billboarding projectile engine.
I have a small udt...
Code:
Type Projectile_Sort
Dist as Single
Id as Integer
End Type
Dim Projectile(Num_Projectiles) as Projectile_Sort
Is there a way to make QSort swap both elements when Dist(i)<Dist(j)? Ummm... Like this...
Code:
Swap Dist(i), Dist(j)
Swap Id(i), Id(j)
Is there a way that I can make QSort do that?