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:
parent
5dd142beb6
commit
e07bc372a1
4 changed files with 89 additions and 60 deletions
|
@ -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++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue