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.
- Listed in Global namespace: T to X
Constructors
| Member | What 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
| Member | What it is |
|---|---|
bool Active | Whether this output is written at all. |
TextureChannels Channels | Which colour channels the texture holds. |
TextureCompression Compression | Compression to use for the texture. Defaults to normal. |
ImageFormat ImageFormat | File format to write. Defaults to TGA. |
int Index | Slot index of this output, -1 when unset. |
string Name | Name of the output texture. |
OverrideMask OverrideMask | Which of these settings override the defaults. |
TextureScale Scale | Output size relative to the source. Defaults to full size. |
bool SRGB | Whether the texture is sRGB (colour) rather than linear data. |
Methods
| Member | What it is |
|---|---|
TextureOutput Clone() | Returns a shallow copy of these settings. |
Used in
Members of other types that take, return or hold a TextureOutput: