BTW, yes, the object does support textures. I looked at the code for it and it loads in the textures and sets them up to display, so that isn't the problem either.
--TheGoop
BTW, yes, the object does support textures. I looked at the code for it and it loads in the textures and sets them up to display, so that isn't the problem either.
--TheGoop
Use D3DTextr_RestoreAllTextures() after you load the x file and D3DTextr_InvalidateAllTextures() before your program quits. You find the function prototypes in the d3dtextr.h file and you have to link to d3dframe.lib. Hope this helps you out.
P.S.: It's possible that the function names i wrote are not correct because i don't know all of them by heart. D3DTextr_ResoreAllTextures() can also be D3DTextr_RestoreAllSurfaces(). But this is the way to go.
VirtualNext