Basic 3D graphics engine using DirectX