Does anyone else make this work?
I think you may have mistakenly chosen the wrong title for this. This is hardly a tutorial, but I'm glad you managed to put this in the right section because all this is is incomprehensible source code. I don't see the reason behind this post, the whole point of source code is for people to learn from and use the techniques in their own programs.