diff options
| author | Ray <[email protected]> | 2018-10-23 15:43:19 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-10-23 15:43:19 +0200 |
| commit | 550dd40cb324896138dde9ee43bb44c0b9723345 (patch) | |
| tree | be67954c09b39928b58cd89a322cf1dd2c08f265 /src/raylib.h | |
| parent | b5bcf2c934a6b0c6b3e8bc9766abc658905fd694 (diff) | |
| download | raylib-550dd40cb324896138dde9ee43bb44c0b9723345.tar.gz raylib-550dd40cb324896138dde9ee43bb44c0b9723345.zip | |
ADDED: SplitText() function
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h index 8256b745..be2383b1 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1088,10 +1088,13 @@ RLAPI void DrawTextEx(Font font, const char *text, Vector2 position, float fontS // Text misc. functions RLAPI int MeasureText(const char *text, int fontSize); // Measure string width for default font RLAPI Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing); // Measure string size for Font -RLAPI const char *FormatText(const char *text, ...); // Formatting of text with variables to 'embed' -RLAPI const char *SubText(const char *text, int position, int length); // Get a piece of a text string RLAPI int GetGlyphIndex(Font font, int character); // Get index position for a unicode character on font +// Text string edition functions +RLAPI const char *FormatText(const char *text, ...); // Formatting of text with variables to 'embed' +RLAPI const char *SubText(const char *text, int position, int length); // Get a piece of a text string +RLAPI char **SplitText(char *text, char delimiter, int *strCount); // Split text string into multiple strings (memory should be freed manually!) + //------------------------------------------------------------------------------------ // Basic 3d Shapes Drawing Functions (Module: models) //------------------------------------------------------------------------------------ |
