This is an abstract base class, a placeholder for any number of different classes that may wish to implement an effect on every texture loaded from disk via the
In practice, as of the time of this writing, only the TxaFileFilter (in pandatool) actually implements this. But other kinds of filters are possible.
This filter, once registered, will get a callback and a chance to modify each texture as it is loaded from disk the first time. If more than one filter is registered, each will be called in sequence, in the order in which they were registered.
The filter does not get called again if the texture is subsequently reloaded from disk. It is suggested that filters for which this might be a problem should call tex->set_keep_ram_image(true).
TexturePoolFilter(void) = default
- TexturePoolFilter(void) = default