Representation of 2D texture resource in Mono domain No means of texture copying is provided in this interface so all the accessor properties are read only.
Inherits TaleWorlds.Engine.Resource.
|
static Texture | CreateTextureFromPath (PlatformFilePath filePath) |
|
static Texture | GetFromResource (string resourceName) |
|
static Texture | CheckAndGetFromResource (string resourceName) |
|
static void | ScaleTextureWithRatio (ref int tableauSizeX, ref int tableauSizeY) |
|
static Texture | LoadTextureFromPath (string fileName, string folder) |
|
static Texture | CreateDepthTarget (string name, int width, int height) |
| Creates a depth stencil texture.
|
|
static Texture | CreateFromByteArray (byte[] data, int width, int height) |
|
static Texture | CreateFromMemory (byte[] data) |
|
static void | ReleaseGpuMemories () |
|
static Texture | CreateTableauTexture (string name, RenderTargetComponent.TextureUpdateEventHandler eventHandler, Object objectRef, int tableauSizeX, int tableauSizeY) |
|
static Texture | CreateRenderTarget (string name, int width, int height, bool autoMipmaps, bool isTableau, bool createUninitialized=false, bool always_valid=false) |
| Creates a render target texture.
|
|
|
| Resource () |
|
void | CheckResourceParameter (Resource param, string paramName="") |
| Check if the parameter 'param' is null or invalid and throws an exception containing 'paramName' as further information.
|
|
◆ CreateTextureFromPath()
◆ TransformRenderTargetToResource()
void TaleWorlds.Engine.Texture.TransformRenderTargetToResource |
( |
string |
name | ) |
|
◆ GetFromResource()
static Texture TaleWorlds.Engine.Texture.GetFromResource |
( |
string |
resourceName | ) |
|
|
static |
◆ IsLoaded()
bool TaleWorlds.Engine.Texture.IsLoaded |
( |
| ) |
|
◆ CheckAndGetFromResource()
static Texture TaleWorlds.Engine.Texture.CheckAndGetFromResource |
( |
string |
resourceName | ) |
|
|
static |
◆ ScaleTextureWithRatio()
static void TaleWorlds.Engine.Texture.ScaleTextureWithRatio |
( |
ref int |
tableauSizeX, |
|
|
ref int |
tableauSizeY |
|
) |
| |
|
static |
◆ PreloadTexture()
void TaleWorlds.Engine.Texture.PreloadTexture |
( |
bool |
blocking | ) |
|
◆ Release()
void TaleWorlds.Engine.Texture.Release |
( |
| ) |
|
◆ ReleaseNextFrame()
void TaleWorlds.Engine.Texture.ReleaseNextFrame |
( |
| ) |
|
◆ LoadTextureFromPath()
static Texture TaleWorlds.Engine.Texture.LoadTextureFromPath |
( |
string |
fileName, |
|
|
string |
folder |
|
) |
| |
|
static |
◆ CreateDepthTarget()
static Texture TaleWorlds.Engine.Texture.CreateDepthTarget |
( |
string |
name, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
◆ CreateFromByteArray()
static Texture TaleWorlds.Engine.Texture.CreateFromByteArray |
( |
byte[] |
data, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
◆ SaveToFile()
void TaleWorlds.Engine.Texture.SaveToFile |
( |
string |
path | ) |
|
◆ SetTextureAsAlwaysValid()
void TaleWorlds.Engine.Texture.SetTextureAsAlwaysValid |
( |
| ) |
|
◆ CreateFromMemory()
static Texture TaleWorlds.Engine.Texture.CreateFromMemory |
( |
byte[] |
data | ) |
|
|
static |
◆ ReleaseGpuMemories()
static void TaleWorlds.Engine.Texture.ReleaseGpuMemories |
( |
| ) |
|
|
static |
◆ CreateTableauTexture()
◆ CreateRenderTarget()
static Texture TaleWorlds.Engine.Texture.CreateRenderTarget |
( |
string |
name, |
|
|
int |
width, |
|
|
int |
height, |
|
|
bool |
autoMipmaps, |
|
|
bool |
isTableau, |
|
|
bool |
createUninitialized = false , |
|
|
bool |
always_valid = false |
|
) |
| |
|
static |
◆ Width
int TaleWorlds.Engine.Texture.Width |
|
get |
◆ Height
int TaleWorlds.Engine.Texture.Height |
|
get |
◆ MemorySize
int TaleWorlds.Engine.Texture.MemorySize |
|
get |
◆ IsRenderTarget
bool TaleWorlds.Engine.Texture.IsRenderTarget |
|
get |
◆ Name
string TaleWorlds.Engine.Texture.Name |
|
getset |
◆ RenderTargetComponent
◆ TableauView
◆ UserData
object TaleWorlds.Engine.Texture.UserData |
|
get |