Thanks Nitrogen. I guess it's based on tutorial that is on flipcode.
Looks very good.

How have you made antialiased result ?? I haven't done antialiasing yet