Get some of the demos, open it and check the code.

Thats the easiest way.