Moving X model rendering code to d3d9-based renderer.