I moved them all into static methods and changed the ordering in the source file so that createMesh() would be close to the top of the file. I also corrected formatting in some of the function declarations since I had to change them anyway.
Also converted all .cpp and .h line endings to CRLF in this commit.