C API SharedText functions
struct RL3_SharedText* rl3_sharedtext_create(struct RL3_Engine* engine, const char* text);
Create a SharedText structure (used with multiple facts found in different parts of one text instance).
engine: | a pointer to an engine structure |
text: | a pointer to the first character in the text to be used as shared |
Returns: | a pointer to a new SharedText structure |
void rl3_sharedtext_release(struct RL3_Engine* engine, struct RL3_SharedText* text);
Destroy a SharedText structure when not needed.
engine: | a pointer to an engine structure |
text: | a pointer to a SharedText structure |
Returns: | nothing |
const char* rl3_sharedtext_get_value(struct RL3_Engine* engine, struct RL3_SharedText* text);
Get the value of a SharedText structure.
engine: | a pointer to an engine structure |
text: | a pointer to a SharedText structure |
Returns: | a pointer to the first character in the return string |