Implemented additional projection matrix calculations, d3d device now uses dx libraries.