Added Direct3D class