File Functions
Functions:
MTK_BlockModel_Open
MTK_BlockModel* MTK_BlockModel_Open(const char* name, const int& readOnly);
Description
Opens a block model.
Parameters
name
blockmodel filename (char*)
readOnly
set to non-zero if readonly (int)
Return Value
Pointer to an empty MTK_BlockModel struct
success
Null pointer
failure
MTK_BlockModel_IsOpen
int MTK_BlockModel_IsOpen(MTK_BlockModel* bmodel);
Description
Queries current object state.
Parameters
bmodel
pointer to an MTK_BlockModel struct
Return Value
0
closed
1
open
other
failure
MTK_BlockModel_Close
int MTK_BlockModel_Close(MTK_BlockModel* bmodel);
Description
Closes blockmodel and releases any memory used. Note that this saves any changes to the block model file
Parameters
bmodel
pointer to an MTK_BlockModel struct
Return Value
0
success
other
failure