Implements DirectX initialization (part2)