mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-06 06:25:54 +01:00
Loading from Memory
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user