Skip to content

How to load a texture from memory to use with image decorator ? #486

Answered by barotto
Lefraudeur asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Lefraudeur
Comment options

You must be logged in to vote
1 reply
@Lefraudeur
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants