Here is a link that has a good amount of information on working with the .x format. I'm an OpenGL person so I cannot answer you off hand

xbdev.net 2012 (c) - Tutorials - Demos - Software and Game Development