Here is a small utility with instructions that will fully load texture and set up a 3d scene, level or world directly exported from blender with 3 lines of code. This supports .x formats only and tested with blender 2.79 and earlier its possible it works 8 haven't tested.
There are a few small additional steps for setup like texture naming policies that must be followed. This code and utility are designed to work a very specific way and the workflow is fast and excellent once everything is setup.
Disclaimer. This software is designed to create and modify a file and will overwrite an existing file of the same name please back up your models do not use your only copy of a file with the exporter.
3 lines of code straight from blender
//#include "import.agc"
//LoadImporter()
//id=loadmodel("AgkCompatible.x")
help file examples and media included in attachment Directx_importer.zip