Open ZanzyTHEbar opened 2 years ago
Not the author, but this framework is to wrap ImGui functionality - you can draw an image at a smaller size without needing to resize the underlying data:
ImGui::Image((GLuint*)textureID, ImVec2(image_size,image_size));
Also worth pointing out that the implementation of Resize doesn't setup any data like the constructors do:
Yes, i am aware of the ImGui method - i was using ImGui::Image(m_Image->GetDescriptorSet(), { (float)m_Image->GetWidth(), (float)m_Image->GetHeight() });
to display the image as well as the simple: ImGui::Image(m_Image->GetDescriptorSet(), { (float)64, (float)64 });
The first method, i used after the call to Resize
thinking i would get a cleaner image. The second method yields the result i am looking for (of course) but it's highly aliased - i have anti-aliasing turned as well in my init method :
ImGuiStyle& style = ImGui::GetStyle();
style.AntiAliasedFill = true;
style.AntiAliasedLines = true;
style.AntiAliasedLinesUseTex = true;
This does not change the way the image renders after resizing - it just looks like crap.
I am loving Walnut - create application framework.
I've run into an issue where when i try to resize an image, using the built-in method, my images are invisible - but rendered.I know that are rendered as my screen scales relative to the image as if it were there - but i see no image. Very odd.
This is the error:
I am using the resize method like so in the
OnAttach()
method.