diff options
| author | raysan5 <[email protected]> | 2021-06-26 21:07:00 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-06-26 21:07:00 +0200 |
| commit | 2f75657350f4377e41064c7ca2941e00e586be63 (patch) | |
| tree | 7c6113bfdd73fb69d64eafa7a5f3ce3a952be888 /src | |
| parent | 00c87953853d46ede8ac8fa8c1b2640dc941f82c (diff) | |
| download | raylib-2f75657350f4377e41064c7ca2941e00e586be63.tar.gz raylib-2f75657350f4377e41064c7ca2941e00e586be63.zip | |
WARNING: REMOVED: Some deprecated function names mapping
Some functions/values have been deprecated for long time but some mapping was kept for convenience. Some of those mappings have been removed...
Diffstat (limited to 'src')
| -rw-r--r-- | src/raylib.h | 8 | ||||
| -rw-r--r-- | src/text.c | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/raylib.h b/src/raylib.h index 210c36b8..b27b1520 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -158,12 +158,8 @@ #define MAGENTA CLITERAL(Color){ 255, 0, 255, 255 } // Magenta #define RAYWHITE CLITERAL(Color){ 245, 245, 245, 255 } // My own White (raylib logo) -// Temporal hacks to avoid breaking old codebases using -// deprecated raylib implementation or definitions -#define SpriteFont Font -#define FormatText TextFormat -#define LoadText LoadFileText -#define GetExtension GetFileExtension +// WARNING: Temporal hacks to avoid breaking old codebases using +// deprecated raylib implementations or definitions #define GetImageData LoadImageColors #define FILTER_POINT TEXTURE_FILTER_POINT #define FILTER_BILINEAR TEXTURE_FILTER_BILINEAR @@ -444,7 +444,7 @@ Font LoadFontFromImage(Image image, Color key, int firstChar) .mipmaps = 1 }; - // Create spritefont with all data parsed from image + // Create font with all data parsed from image Font font = { 0 }; font.texture = LoadTextureFromImage(fontClear); // Convert processed image to OpenGL texture @@ -1122,7 +1122,7 @@ Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing return vec; } -// Get index position for a unicode character on spritefont +// Get index position for a unicode character on font int GetGlyphIndex(Font font, int codepoint) { #ifndef GLYPH_NOTFOUND_CHAR_FALLBACK |
