/* * model.h * * Model loading and display. * */ typedef void *model; // Model classes. // Use xxx->load(filename) to load a model, where xxx is the model class. Returns a data structure that can be passed to xxx->draw(). // Use xxx->draw(model) to draw a model. typedef struct _m_c { model (*load)(char *filename); void (*draw)(model); } model_class; extern model_class autodesk_3ds;