154 const char* filename);
void(* TS2_MapValueDestructor)(void *value)
Definition: Ts2Utils.h:36
void TS2_Map_Destruct(TS2_Map *self)
TS2_EXPORT ATX_Result TS2_RotationPoints_SetPoint(TS2_RotationPoints *self, ATX_Ordinal idx, ATX_UInt32 point)
Modifies the rotation point at a particular index position in the rotation points list...
TS2_EXPORT ATX_Result TS2_RotationPoints_CreateFromFile(const char *filename, TS2_RotationPoints **points)
Creates a TS2_RotationPoints object containing the rotation points indicated in a specified file...
struct TS2_RotationPoints TS2_RotationPoints
A TS2_RotationPoints object can be used to specify "rotation points" indicating where in the Transpor...
Definition: Ts2Utils.h:34
ATX_Result TS2_Map_Put(TS2_Map *self, ATX_UInt16 key, void *value)
Definition: Ts2Utils.h:38
#define TS2_EXPORT
Definition: Ts2Config.h:67
TS2_MapValueDestructor destroy_value
Definition: Ts2Utils.h:41
ATX_Result TS2_Map_Construct(TS2_Map *self, TS2_MapValueDestructor destructor)
ATX_List * entries
Definition: Ts2Utils.h:40
TS2_EXPORT ATX_Result TS2_RotationPoints_ToFile(const TS2_RotationPoints *self, const char *filename)
Outputs the rotation points list to a file.
TS2_EXPORT ATX_Result TS2_RotationPoints_Create(ATX_Size capacity, TS2_RotationPoints **points)
Creates a TS2_RotationPoints object with a specified capacity.
void TS2_Map_Clear(TS2_Map *self)
void * TS2_Map_Get(TS2_Map *self, ATX_UInt16 key)
ATX_Result TS2_Map_Remove(TS2_Map *self, ATX_UInt16 key)
TS2_EXPORT void TS2_RotationPoints_Destroy(TS2_RotationPoints *self)
Destroys the specified TS2_RotationPoints object.
TS2_EXPORT ATX_Result TS2_RotationPoints_AddPoint(TS2_RotationPoints *self, ATX_UInt32 point)
Adds a specified rotation point to the end of the list of rotation points.
TS2_EXPORT ATX_Size TS2_RotationPoints_GetPointCount(const TS2_RotationPoints *self)
Gets the number of rotation points in the rotation points list.
TS2_EXPORT ATX_Result TS2_RotationPoints_GetPoint(const TS2_RotationPoints *self, ATX_Ordinal idx, ATX_UInt32 *point)
Gets the value of the rotation point at a specified index position.