diff options
| author | raysan5 <[email protected]> | 2015-07-18 19:26:13 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2015-07-18 19:26:13 +0200 |
| commit | 067b884f395b7b6d4c179cb3d58b0d17a02950ec (patch) | |
| tree | b6075ae3689cb345c27f0358bc814b48596b3877 /examples/textures_mipmaps.c | |
| parent | a98578c91db7d51233ae56e599dd4a3b2244cd0c (diff) | |
| download | raylib-067b884f395b7b6d4c179cb3d58b0d17a02950ec.tar.gz raylib-067b884f395b7b6d4c179cb3d58b0d17a02950ec.zip | |
Updated examples for next raylib version
Diffstat (limited to 'examples/textures_mipmaps.c')
| -rw-r--r-- | examples/textures_mipmaps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/textures_mipmaps.c b/examples/textures_mipmaps.c index d3ba1708..6b7a64f0 100644 --- a/examples/textures_mipmaps.c +++ b/examples/textures_mipmaps.c @@ -24,10 +24,10 @@ int main() InitWindow(screenWidth, screenHeight, "raylib [textures] example - texture mipmaps generation"); // NOTE: To generate mipmaps for an image, image must be loaded first and converted to texture - // with mipmaps option set to true on CreateTexture() Image image = LoadImage("resources/raylib_logo.png"); // Load image to CPU memory (RAM) - Texture2D texture = LoadTextureFromImage(image, true); // Create texture and generate mipmaps + Texture2D texture = LoadTextureFromImage(image); // Load texture into GPU memory (VRAM) + GenTextureMipmaps(texture); // Generate mipmaps for texture UnloadImage(image); // Once texture has been created, we can unload image data from RAM //-------------------------------------------------------------------------------------- |
