diff options
| author | Ray <[email protected]> | 2021-06-28 09:39:31 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-06-28 09:39:31 +0200 |
| commit | e5cf3f9555bc8b0d6e379c4fae95358049a1b37c (patch) | |
| tree | a0a3da3d23e4c9124c4aa703513552d073a83c11 /examples/textures/textures_to_image.c | |
| parent | 5f03201616e32b04d969e8c4f2918f17df5447b6 (diff) | |
| download | raylib-e5cf3f9555bc8b0d6e379c4fae95358049a1b37c.tar.gz raylib-e5cf3f9555bc8b0d6e379c4fae95358049a1b37c.zip | |
WARNING: BREAKING: Functions renamed for consistency
RENAMED: GetTextureData() -> LoadImageFromTexture()
RENAMED: GetScreenData() -> LoadImageFromScreen()
Diffstat (limited to 'examples/textures/textures_to_image.c')
| -rw-r--r-- | examples/textures/textures_to_image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/textures/textures_to_image.c b/examples/textures/textures_to_image.c index c0989baf..fc595b99 100644 --- a/examples/textures/textures_to_image.c +++ b/examples/textures/textures_to_image.c @@ -1,6 +1,6 @@ /******************************************************************************************* * -* raylib [textures] example - Retrieve image data from texture: GetTextureData() +* raylib [textures] example - Retrieve image data from texture: LoadImageFromTexture() * * NOTE: Images are loaded in CPU memory (RAM); textures are loaded in GPU memory (VRAM) * @@ -28,7 +28,7 @@ int main(void) Texture2D texture = LoadTextureFromImage(image); // Image converted to texture, GPU memory (RAM -> VRAM) UnloadImage(image); // Unload image data from CPU memory (RAM) - image = GetTextureData(texture); // Retrieve image data from GPU memory (VRAM -> RAM) + image = LoadImageFromTexture(texture); // Load image from GPU texture (VRAM -> RAM) UnloadTexture(texture); // Unload texture from GPU memory (VRAM) texture = LoadTextureFromImage(image); // Recreate texture from retrieved image data (RAM -> VRAM) |
