Replies: 4 comments
-
Hi, Does this API, which is public, fill your needs? // `HelloImGui::ImageAndSize HelloImGui::ImageAndSizeFromAsset(assetPath)`:
// will return the texture ID and the size of an image loaded from the assets.
struct ImageAndSize
{
ImTextureID textureId = ImTextureID(0);
ImVec2 size = ImVec2(0.f, 0.f);
};
ImageAndSize ImageAndSizeFromAsset(const char *assetPath); |
Beta Was this translation helpful? Give feedback.
-
... Or are you looking to access the pixel data? |
Beta Was this translation helpful? Give feedback.
-
Following current API-style I would prefer to have some helper functions, for example As image data is storing in GPU memory, so access to its copy in RAM is user responsibility I think |
Beta Was this translation helpful? Give feedback.
-
I'll leave this issue opened and come back to it at a later time |
Beta Was this translation helpful? Give feedback.
-
Could you please make public (I mean not internal) class for image?
For example, in my code I use the following
Beta Was this translation helpful? Give feedback.
All reactions