TexMan
Show declaration
struct TexMan clearScope;
The Texture Manager is used for loading, finding, replacing and getting information on textures.
Class Methods
-
static textureId CheckForTexture(string name, TexMan.EUseTypes useType, TexMan.EFlags flags = TexMan.TryAny)
-
Returns a
textureIdfor the texture namedname.
-
static int CheckRealHeight(textureId tex)
-
Returns the height in pixels of the texture down to the last scanline which has actual pixel data. Note that this operation is extremely slow and should be used sparingly.
-
static string GetName(textureId tex)
-
Returns the original name of a
textureId.
-
static vector2 GetScaledOffset(textureId tex)
-
Returns the offsets for this texture used to display it (rather than the original offsets.)
-
static vector2 GetScaledSize(textureId tex)
-
Returns the size used to display this texture (rather than the physical size.)
-
static int, int GetSize(textureId tex)
-
Returns the width and height of a
textureId.
-
static void SetCameraToTexture(Actor viewPoint, string texture, double fov)
-
Sets the camera texture (as defined in
ANIMDEFS)textureto the viewpoint ofviewPointwith a fov offov.
-
static bool OkForLocalization(textureId patch, string textSubstitute)
-
TO-DO — This section is not finished yet
-
deprecated("3.8") static void ReplaceTextures(string from, string to, TexMan.ETexReplaceFlags flags)
-
Legacy — Do not use Use
LevelLocals.ReplaceTexturesinstead.Replaces textures named
fromwithtowithin the map.
Overview of class methods
CheckForTexture, CheckRealHeight, GetName, GetScaledOffset, GetScaledSize, GetSize, OkForLocalization, ReplaceTextures, SetCameraToTexture