set up basics of DirectX