Open tomwmth opened 5 months ago
There is a TextureFiltering example, but it is disabled at the moment because of cimgui-go migration, however it should work on v0.7.0
hmm its a bit deeply hidden in current rendering mechanism... Idk if we'll be able to fix this soon :cry: Maybe it'd be beter for you to scale down your imige and then create a new texture from it?
Related problem
I have an application where I render a simple UI like so:
The
ImageWidget
containing the logo looks extremely bad due to not utilizing mipmaps when it is being scaled down. After investigating the source I saw that these mipmaps are being generated by the library however they aren't being used due to the texture filtering setting. Further investigation revealed that usinggiu.Context.GetRenderer()
I am able to access functions for changing the texture filtering. Despite this, I cannot see how I can use these to affect only myImageWidget
and not the entire application. Letting it apply to the entire application breaks the background and theProgressBar
. By the time it is being rendered the widget is out of my control to influence as changing the texture filtering while the widget is being built (not rendered) is useless.Unless I am missing something (entirely possible) I do not see how I could achieve the desired behaviour.
Your request
A way to set the texture filtering that is used for
ImageWidget
s on an individual basis.Alternative solution
No response
Additional context
No response