int error;
uint32_t modelCount;
for (uint32_t modelId=0; modelId<modelCount; ++modelId) {
if (error) {
}
for (uint32_t var=0; var<variations; ++var) {
if (error) {
}
}
}
void t2fs_model_init(T2FSModel *mdl)
Init our unified model struct.
uint32_t t2fs_model_count(T2FSContext *ctx)
Get the amount of models present.
void t2fs_model_free(T2FSModel *mdl)
Free all allocated memory for given T2FSModel.
struct s_T2FSModel T2FSModel
struct s_T2FSModelContext T2FSModelContext
helper to unify different games/versions
int t2fs_model_load_data_node(T2FSModelContext *mdlCtx, uint32_t mdlId, T2FSNode **dest)
Loads the model data into memory.
void t2fs_model_context_init(T2FSContext *ctx, T2FSModelContext *mdlCtx)
Initialize T2FSModelContext.
int t2fs_model_make(T2FSModelContext *mdlCtx, T2FSNode *mdlNode, uint32_t varId, T2FSModel *dest)
Convert the model data to our unified struct s_T2FSModel.
uint32_t t2fs_model_get_variation_count(T2FSModelContext *mdlCtx, T2FSNode *mdlNode)
Get the model variation count.
void t2fs_model_unload_data_node(T2FSNode *modelNode)
Unloads the model data node.
struct s_T2FSNode T2FSNode
This is the core object to describe a path inside the tree.
Definition t2fs.h:110