A D3D example written by myself using DX9.