Resource packs
This page has been automatically translated using the Google Translate API services. We are working on improving texts. Thank you for your understanding and patience.
Functions
void | respack_destroy (...) |
const char_t* | respack_text (...) |
const byte_t* | respack_file (...) |
Resource packs are generated at compile time and used at run time by the applications. More information in Resources.
- Use respack_text to get text from a resource pack.
- Use image_from_resource to get an image from a resource pack.
- Use respack_file to get a file from a resource pack.
- Use respack_destroy to destroy a resource pack.
respack_destroy ()
Destroy a resource package.
void respack_destroy(ResPack **pack);
pack | Resource Package. Will be set to |
respack_text ()
Get a text from a resource package.
const char_t* respack_text(const ResPack *pack, const ResId id);
pack | Resource package. |
id | Resource identifier. |
Return
UTF8 C string terminated in null character '\0'
.
respack_file ()
Get a pointer to the contents of a file, included in a resource package.
const byte_t* respack_file(const ResPack *pack, const ResId id, uint32_t *size);
pack | Resource package. |
id | Resource identifier. |
size | Get the file size in bytes. |
Return
Pointer to file content (raw bytes).