Loading from Memory

omar 2024-07-30 14:09:52 +02:00
parent 74bd7e8bce
commit 64b16ff293

@ -10,6 +10,7 @@
- [Example for DirectX12 users](#example-for-directx12-users)
- [Example for SDL_Renderer users](#example-for-sdl_renderer-users)
- [Example for Vulkan users](#example-for-vulkan-users)
- [Loading from Memory](#loading-from-memory)
- [About Texture Coordinates](#about-texture-coordinates)
## TL;DR;
@ -877,6 +878,15 @@ RemoveTexture(&my_texture);
----
## Loading from Memory
If instead of loading from a file you would like to load from memory, you can call `stbi_load_from_memory()` instead of `stbi_load()`.
All `LoadTextureFromFile()` function could be reworked to call `LoadTextureFromMemory()` which contains most of the code.
##### [Return to Index](#index)
----
## About Texture Coordinates
See e.g. http://wiki.polycount.com/wiki/Texture_Coordinates