.X directx file

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
newcomer

.X directx file

Post by newcomer »

Dear Niko;
how can i add the .x directx file support to the engine?
i have the code for it, but i'm new to VC++ programming and i need to know which files should i modify and where to add.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Hi, you will not need to change a file. Simply create a class which loads the .x file and derive it from IMeshLoader. (http://irrlicht.sourceforge.net/docu/cl ... oader.html)
Then add it to the ISceneManager by calling theSceneManager->addExternalMeshLoader(yourMeshLoader);
After this, the engine is able to load .x files.
Zaelsius
Posts: 38
Joined: Sat Aug 23, 2003 12:02 pm
Location: Alicante, Spain
Contact:

Post by Zaelsius »

Newcomer, please tell us when you get it, ok? :D
Post Reply