diff --git a/Image-Loading-and-Displaying-Examples.md b/Image-Loading-and-Displaying-Examples.md index 55747cc..d45187f 100644 --- a/Image-Loading-and-Displaying-Examples.md +++ b/Image-Loading-and-Displaying-Examples.md @@ -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