|
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...
|
|
◆ 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
-
texture | Target texture. |
format | Format 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
-
◆ IsReadable()
static bool Semi.Texture2DExt.IsReadable |
( |
this Texture2D |
texture | ) |
|
|
inlinestatic |
Checks whether the texture can be read.
- Returns
true
, if readable, false
otherwise.
- Parameters
-
The documentation for this class was generated from the following file:
- Semi/src/Extensions/Texture2D.cs