mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
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...
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user