24 #ifndef TRIMESH_LOADER_3DS_H 25 #define TRIMESH_LOADER_3DS_H 36 #ifndef TRIMESH_LOADER_EXPORT 37 #define TRIMESH_LOADER_API 39 #define TRIMESH_LOADER_API extern 82 unsigned int object );
86 unsigned int object );
90 unsigned int object );
96 unsigned int object );
110 unsigned int object );
115 unsigned int *face_index,
116 unsigned int *face_count );
123 double *x,
double *y,
double *z,
124 double *tu,
double *tv,
125 double *nx,
double *ny,
double *nz );
130 float *x,
float *y,
float *z,
131 float *tu,
float *tv,
132 float *nx,
float *ny,
float *nz );
TRIMESH_LOADER_API int tl3dsGetMaterialReference(tl3dsState *state, unsigned int index, unsigned int *face_index, unsigned int *face_count)
TRIMESH_LOADER_API void tl3dsDestroyState(tl3dsState *state)
Destroy a previously created state.
TRIMESH_LOADER_API unsigned int tl3dsFaceCount(tl3dsState *state)
TRIMESH_LOADER_API const char * tl3dsMaterialName(tl3dsState *state, unsigned int object)
TRIMESH_LOADER_API int tl3dsGetVertexDouble(tl3dsState *state, unsigned int index, double *x, double *y, double *z, double *tu, double *tv, double *nx, double *ny, double *nz)
TRIMESH_LOADER_API int tl3dsCheckFileExtension(const char *filename)
TRIMESH_LOADER_API int tl3dsGetFaceInt(tl3dsState *state, unsigned int index, unsigned int *a, unsigned int *b, unsigned int *c)
TRIMESH_LOADER_API int tl3dsParse(tl3dsState *state, const char *buffer, unsigned int length, int last)
Parse a chunk of data.
TRIMESH_LOADER_API unsigned int tl3dsObjectFaceIndex(tl3dsState *state, unsigned int object)
#define TRIMESH_LOADER_API
Definition: tl3ds.h:37
struct tl3dsState tl3dsState
Structure describing the parsing state.
Definition: tl3ds.h:47
TRIMESH_LOADER_API int tl3dsResetState(tl3dsState *state)
Reset the parsing state.
TRIMESH_LOADER_API tl3dsState * tl3dsCreateState()
Create a new parsing state.
TRIMESH_LOADER_API int tl3dsGetVertex(tl3dsState *state, unsigned int index, float *x, float *y, float *z, float *tu, float *tv, float *nx, float *ny, float *nz)
TRIMESH_LOADER_API const char * tl3dsObjectName(tl3dsState *state, unsigned int object)
TRIMESH_LOADER_API unsigned int tl3dsMaterialCount(tl3dsState *state)
TRIMESH_LOADER_API int tl3dsGetFace(tl3dsState *state, unsigned int index, unsigned short *a, unsigned short *b, unsigned short *c)
TRIMESH_LOADER_API int tl3dsGetMaterial(tl3dsState *state, unsigned int index, float *ambient, float *diffuse, float *specular, float *reflect)
TRIMESH_LOADER_API unsigned int tl3dsMaterialReferenceCount(tl3dsState *state)
TRIMESH_LOADER_API unsigned int tl3dsObjectCount(tl3dsState *state)
TRIMESH_LOADER_API const char * tl3dsMaterialReferenceName(tl3dsState *state, unsigned int object)
TRIMESH_LOADER_API unsigned int tl3dsHasNormals(tl3dsState *state)
Check if the loaded mesh has normals.
TRIMESH_LOADER_API unsigned int tl3dsVertexCount(tl3dsState *state)
TRIMESH_LOADER_API unsigned int tl3dsObjectFaceCount(tl3dsState *state, unsigned int object)