Semi Mod Loader
Static Public Member Functions | List of all members
Semi.Texture2DExt Class Reference

Static Public Member Functions

static bool IsReadable (this Texture2D texture)
 Checks whether the texture can be read. More...
 
static Texture2D GetRW (this Texture2D texture)
 Gets a read/write copy of the texture. More...
 
static Texture2D Copy (this Texture2D texture, TextureFormat? format=TextureFormat.ARGB32)
 Copies the specified texture with the selected format. More...
 

Member Function Documentation

◆ Copy()

static Texture2D Semi.Texture2DExt.Copy ( this Texture2D  texture,
TextureFormat?  format = TextureFormat.ARGB32 
)
inlinestatic

Copies the specified texture with the selected format.

Returns
A read/write copy of the texture.
Parameters
textureTarget texture.
formatFormat of the new texture.

◆ GetRW()

static Texture2D Semi.Texture2DExt.GetRW ( this Texture2D  texture)
inlinestatic

Gets a read/write copy of the texture.

Returns
A readable/writeable texture with the same data as the parameter, which will be a copy unless the passed texture is already R/W.
Parameters
textureTarget texture.

◆ IsReadable()

static bool Semi.Texture2DExt.IsReadable ( this Texture2D  texture)
inlinestatic

Checks whether the texture can be read.

Returns
true, if readable, false otherwise.
Parameters
textureTarget texture.

The documentation for this class was generated from the following file: