First release

Just port to DirectX 9 version code from source code of t3f