I'm in the process of adding mipmap generation to my DDS plugin. To this end, I've added a checkbox to my UI to allow for the generation of mips to be optional.
I need to be able to disable this checkbox, but I'm unsure as to how to get the currently-being-saved image's width & height. Reason being that you can only have mipmaps for power-of-two images in the DDS file format... so the option should be disabled for non-power-of-two images.
I thought about putting the width/height in my toke
Had some time to check up in some DDS reference materials this lunchtime, as well as speak to some colleagues. Turns out it's quite valid to have non power-of-two DXT textures with mipmaps (it wasn't valid when I was working on Xbox titles way back.. hence the confusion).
So as it happens this was all irrelevant anyway..
You could delete the thread, if you so wished..