diff options
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 |
