Skip to main content

TextureOutput

A class in Root.Township, the global namespace.

Settings for one texture a texture-baking tool writes out: name, size, channels, compression and file format. Editor or tool data, not gameplay.

Constructors​

MemberWhat it is
TextureOutput()Creates a TextureOutput from a, n, s, sr, c, nc and i.
TextureOutput(bool a, string n, TextureScale s, bool sr, TextureChannels c, TextureCompression nc, ImageFormat i)Creates a TextureOutput from a, n, s, sr, c, nc and i.

Fields​

MemberWhat it is
bool ActiveWhether this output is written at all.
TextureChannels ChannelsWhich colour channels the texture holds.
TextureCompression CompressionCompression to use for the texture. Defaults to normal.
ImageFormat ImageFormatFile format to write. Defaults to TGA.
int IndexSlot index of this output, -1 when unset.
string NameName of the output texture.
OverrideMask OverrideMaskWhich of these settings override the defaults.
TextureScale ScaleOutput size relative to the source. Defaults to full size.
bool SRGBWhether the texture is sRGB (colour) rather than linear data.

Methods​

MemberWhat it is
TextureOutput Clone()Returns a shallow copy of these settings.

Used in​

Members of other types that take, return or hold a TextureOutput: