How to load a texture from memory to use with image decorator ? #486
-
How to load a texture from memory to use with image decorator ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can do that by adding a load from memory mechanism yourself in your implementation of |
Beta Was this translation helpful? Give feedback.
-
Thank you ! it works well, I'm using premade backend for win32 and gl2 so I haven't thought about this. |
Beta Was this translation helpful? Give feedback.
You can do that by adding a load from memory mechanism yourself in your implementation of
RenderInterface::LoadTexture(TextureHandle& texture_handle, Vector2i& texture_dimensions, const String& source)
.You just need to distinguish between the texture types by the
source
parameter and then load the correct data.Not sure if it's the best way to do it, but it's what I did myself.