WARNING: BREAKING: Functions renamed for consistency

RENAMED: GetTextureData() -> LoadImageFromTexture()
RENAMED: GetScreenData() -> LoadImageFromScreen()
This commit is contained in:
Ray 2021-06-28 09:39:31 +02:00
parent 5f03201616
commit e5cf3f9555
4 changed files with 51 additions and 51 deletions

View file

@ -146,7 +146,7 @@ int main(void)
// NOTE: Saving painted texture to a default named image
if ((btnSaveMouseHover && IsMouseButtonReleased(MOUSE_BUTTON_LEFT)) || IsKeyPressed(KEY_S))
{
Image image = GetTextureData(target.texture);
Image image = LoadImageFromTexture(target.texture);
ImageFlipVertical(&image);
ExportImage(image, "my_amazing_texture_painting.png");
UnloadImage(image);