How to get textures settings from code?

thanks a lot