Go to the source code of this file.
Data Structures | |
| struct | s_t2fsDataModelInfo |
| struct | s_t2fsDataBone |
| struct | s_t2fsDataBoneOrientation |
| struct | s_t2fsDataAnimationBoneIndices |
| struct | s_t2fsDataAnimationHeader |
| struct | s_t2fsDataHotpoint |
| struct | s_t2fsDataColorRGBA8 |
| struct | s_t2fsDataMaterial |
| struct | s_t2fsDataVertex |
| struct | s_t2fsModelSurface |
| struct | s_t2fsModelMesh |
| struct | s_t2fsModel |
| struct | s_t2fsTCoord |
| struct | s_t2fsVertex |
| struct | s_t2fsIndices |
| struct | s_t2fsTriangles |
Macros | |
| #define | T2FS_MODEL_BONE_SYMBOL_LEG 0b001 |
| #define | T2FS_MODEL_BONE_SYMBOL_NOT_HEAD 0b010 |
| #define | T2FS_MODEL_BONE_SYMBOL_RIGHT 0b100 |
Typedefs | |
| typedef struct s_t2fsDataModelInfo | t2fsDataModelInfo |
| typedef struct s_t2fsDataBone | t2fsDataBone |
| typedef struct s_t2fsDataBoneOrientation | t2fsDataBoneOrientation |
| typedef struct s_t2fsDataAnimationBoneIndices | t2fsDataAnimationBoneIndices |
| typedef struct s_t2fsDataAnimationHeader | t2fsDataAnimationHeader |
| typedef struct s_t2fsDataHotpoint | t2fsDataHotpoint |
| typedef struct s_t2fsDataColorRGBA8 | t2fsDataColorRGBA8 |
| typedef struct s_t2fsDataMaterial | t2fsDataMaterial |
| typedef struct s_t2fsDataVertex | t2fsDataVertex |
| typedef struct s_t2fsModelSurface | t2fsModelSurface |
| typedef struct s_t2fsModelMesh | t2fsModelMesh |
| typedef struct s_t2fsModel | t2fsModel |
| typedef struct s_t2fsTCoord | t2fsTCoord |
| typedef struct s_t2fsVertex | t2fsVertex |
| typedef struct s_t2fsIndices | t2fsIndices |
| typedef struct s_t2fsTriangles | t2fsTriangles |
Functions | |
| void | t2fs_triangles_init (t2fsTriangles *tri) |
| void | t2fs_triangles_free (t2fsTriangles *tri) |
| void | t2fs_model_clear (t2fsModel *model) |
| uint32_t | t2fs_model_count (t_t2fs *lib) |
| int | t2fs_model_load (t_t2fs *lib, t2fsModel *model, uint32_t id) |
| void | t2fs_model_unload (t2fsModel *model) |
| t2fsDataBone * | t2fs_model_get_bone (t2fsModel *model, uint32_t boneId) |
| int | t2fs_model_get_bone_orientations (t2fsModel *model, t2fsArray *orientations, uint32_t poseId) |
| void | t2fs_model_mesh_init (t2fsModelMesh *mesh) |
| int | t2fs_model_get_mesh (t2fsModel *model, t2fsModelMesh *dest, uint32_t meshId) |
| void | t2fs_model_mesh_surface_clear (t2fsModelSurface *surface) |
| int | t2fs_model_mesh_get_surface (t2fsModelMesh *mesh, t2fsModelSurface *dest, uint32_t surfaceId) |
| int | t2fs_model_surface_get_triangles (t2fsModelSurface *surface, t2fsTriangles *dest, uint32_t vertOffset) |
Example usage:
Assuming you are already familiar with the usage of t2fs.h and have an open t_t2fs object, in this example called lib.
| #define T2FS_MODEL_BONE_SYMBOL_LEG 0b001 |
| #define T2FS_MODEL_BONE_SYMBOL_NOT_HEAD 0b010 |
| #define T2FS_MODEL_BONE_SYMBOL_RIGHT 0b100 |
| typedef struct s_t2fsModelSurface t2fsModelSurface |
| typedef struct s_t2fsModelMesh t2fsModelMesh |
| typedef struct s_t2fsModel t2fsModel |
| typedef struct s_t2fsTCoord t2fsTCoord |
| typedef struct s_t2fsVertex t2fsVertex |
| typedef struct s_t2fsIndices t2fsIndices |
| typedef struct s_t2fsTriangles t2fsTriangles |
| void t2fs_triangles_init | ( | t2fsTriangles * | tri | ) |
| void t2fs_triangles_free | ( | t2fsTriangles * | tri | ) |
| void t2fs_model_clear | ( | t2fsModel * | model | ) |
| uint32_t t2fs_model_count | ( | t_t2fs * | lib | ) |
| void t2fs_model_unload | ( | t2fsModel * | model | ) |
| t2fsDataBone * t2fs_model_get_bone | ( | t2fsModel * | model, |
| uint32_t | boneId ) |
| int t2fs_model_get_bone_orientations | ( | t2fsModel * | model, |
| t2fsArray * | orientations, | ||
| uint32_t | poseId ) |
| void t2fs_model_mesh_init | ( | t2fsModelMesh * | mesh | ) |
| int t2fs_model_get_mesh | ( | t2fsModel * | model, |
| t2fsModelMesh * | dest, | ||
| uint32_t | meshId ) |
| void t2fs_model_mesh_surface_clear | ( | t2fsModelSurface * | surface | ) |
| int t2fs_model_mesh_get_surface | ( | t2fsModelMesh * | mesh, |
| t2fsModelSurface * | dest, | ||
| uint32_t | surfaceId ) |
| int t2fs_model_surface_get_triangles | ( | t2fsModelSurface * | surface, |
| t2fsTriangles * | dest, | ||
| uint32_t | vertOffset ) |