DOKK / manpages / debian 12 / s3d-doc / s3d_import_model_file.3.en
S3D_IMPORT_MODEL_FIL(3) s3d Manual S3D_IMPORT_MODEL_FIL(3)

s3d_import_model_file - read model from file

#include <s3d.h>

int s3d_import_model_file(const char *fname);

Imports an 3d object file and returns the object number. Quite a number of formats are supported, like 3D Studio (.3ds, .prj), Lightwave (.lw, .lwb, .lwo), Quake Models (.md3), or simply everything libg3d supports. :)


Warning

Of course, you won't forget to toggle it visible, won't you?

Simon Wunderlich

Author of s3d
s3d