Function in ldk_texture_atlas.h

ldk_texture_atlas_from_tml

Read an atlas and its regions from TML.

LDK_API bool ldk_texture_atlas_from_tml(
 LDKTextureAtlas *atlas,
 const char *text
);

Parameters

LDKTextureAtlas *atlas
Texture atlas being inspected or modified.
const char *text
Text used by this operation.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_texture_atlas.h

ldk_texture_atlas_load

Load the texture atlas.

LDK_API bool ldk_texture_atlas_load(
 LDKTextureAtlas *atlas,
 const char *filename
);

Parameters

LDKTextureAtlas *atlas
Texture atlas being inspected or modified.
const char *filename
Filename used by this operation.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_texture_atlas.h

ldk_texture_atlas_save

Save the texture atlas.

LDK_API bool ldk_texture_atlas_save(
 const LDKTextureAtlas *atlas,
 const char *filename
);

Parameters

const LDKTextureAtlas *atlas
Texture atlas being inspected or modified.
const char *filename
Filename used by this operation.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_texture_atlas.h

ldk_texture_atlas_to_tml

Serialize the atlas and its regions to TML.

LDK_API bool ldk_texture_atlas_to_tml(
 const LDKTextureAtlas *atlas,
 char **out_text
);

Parameters

const LDKTextureAtlas *atlas
Texture atlas being inspected or modified.
char **out_text
Destination buffer for the resulting text.

Returns

True if the operation succeeds; false otherwise.