mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-08 04:18:15 +00:00
WARNING: RENAMED several functions for consistency #1440
This is a BREAKING CHANGE! To address the linked issue, several functions have been renamed and couterpart functions have been created to free loaded memory: - RENAMED: GetImageData() -> LoadImageColors() - RENAMED: GetImagePalette() -> LoadImagePalette() - RENAMED: GetWaveData() -> LoadWaveSamples() - ADDED: UnloadImageColors() - ADDED: UnloadImagePalette() - ADDED: UnloadWaveSamples()
This commit is contained in:
@@ -376,7 +376,7 @@ Font LoadFontFromImage(Image image, Color key, int firstChar)
|
||||
int tempCharValues[MAX_GLYPHS_FROM_IMAGE];
|
||||
Rectangle tempCharRecs[MAX_GLYPHS_FROM_IMAGE];
|
||||
|
||||
Color *pixels = GetImageData(image);
|
||||
Color *pixels = LoadImageColors(image);
|
||||
|
||||
// Parse image data to get charSpacing and lineSpacing
|
||||
for (y = 0; y < image.height; y++)
|
||||
|
Reference in New Issue
Block a user