Implemented new mesh class to Direct3D 9.0 and other bug fixes.