Table of Contents

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

width int
height int
format Format

Properties

AlphaTexture

public ITexture AlphaTexture { get; }

Property Value

ITexture

Format

public Format Format { get; }

Property Value

Format

ImageSize

public Size ImageSize { get; }

Property Value

Size

IsStubTexture

public bool IsStubTexture { get; }

Property Value

bool

PixelCount

public int PixelCount { get; }

Property Value

int

TextureParams

public TextureParams TextureParams { get; set; }

Property Value

TextureParams

UnderlyingTexture

public ITexture UnderlyingTexture { get; }

Property Value

ITexture

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

IPlatformRenderTexture2D

IsTransparentPixel(int, int)

public bool IsTransparentPixel(int x, int y)

Parameters

x int
y int

Returns

bool

RestoreRenderTarget()

public void RestoreRenderTarget()

SetAsRenderTarget()

public void SetAsRenderTarget()

TransformUVCoordinatesToAtlasSpace(ref Vector2)

public void TransformUVCoordinatesToAtlasSpace(ref Vector2 uv)

Parameters

uv Vector2