Thread: Please Help!
View Single Post
Old 2nd April 2004, 12:15 AM   #13
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,564
Default Re: Please Help!

When you add an importer, you pass the funtion that AC3D will call to load an object e.g.

Code:
    ac_register_file_importer("3DS", ".3ds", "3D Studio", ac_import_3ds, ac_import_3ds_info);


ACObject *ac_import_3ds (char *filename)
{
// open the file
// create AC3D object structures
// return the top object
}
the sv import code from the SDK is a simple example of how to create an object structure.

Andy
Andy is offline   Reply With Quote