Class RenderTexture
- Namespace
- Lime
- Assembly
- Lime.dll
public class RenderTexture : CommonTexture, ITexture, IDisposable
- Inheritance
-
RenderTexture
- Implements
- Inherited Members
Constructors
RenderTexture(int, int, Format)
public RenderTexture(int width, int height, Format format = Format.R8G8B8A8_UNorm)
Parameters
Properties
AlphaTexture
public ITexture AlphaTexture { get; }
Property Value
Format
public Format Format { get; }
Property Value
ImageSize
public Size ImageSize { get; }
Property Value
IsStubTexture
public bool IsStubTexture { get; }
Property Value
PixelCount
public int PixelCount { get; }
Property Value
TextureParams
public TextureParams TextureParams { get; set; }
Property Value
UnderlyingTexture
public ITexture UnderlyingTexture { get; }
Property Value
Methods
Dispose()
public override void Dispose()
~RenderTexture()
protected ~RenderTexture()
GetPixels()
Copies all pixels from texture.
public Color4[] GetPixels()
Returns
- Color4[]
Remarks
This is a very expensive method. It requires waiting for all previous render commands to complete. All previous render commands include commands from all previous frames.
GetPixels(Color4[])
Copies all pixels from texture.
public void GetPixels(Color4[] destinationArray)
Parameters
destinationArray
Color4[]
Remarks
This is a very expensive method. It requires waiting for all previous render commands to complete. All previous render commands include commands from all previous frames.
GetPlatformTexture()
public IPlatformRenderTexture2D GetPlatformTexture()
Returns
IsTransparentPixel(int, int)
public bool IsTransparentPixel(int x, int y)
Parameters
Returns
RestoreRenderTarget()
public void RestoreRenderTarget()
SetAsRenderTarget()
public void SetAsRenderTarget()
TransformUVCoordinatesToAtlasSpace(ref Vector2)
public void TransformUVCoordinatesToAtlasSpace(ref Vector2 uv)
Parameters
uv
Vector2