Table of Contents

Class RenderTarget

Namespace
OmegaEngine.Graphics
Assembly
OmegaEngine.dll

Provides an in-memory area to render to instead of directly painting on the screen.

public sealed class RenderTarget : ITextureProvider, IReferenceCount, IDisposable, IPoolable<RenderTarget>
Inheritance
RenderTarget
Implements
Inherited Members
Extension Methods

Remarks

Lost devices are automatically handled.

Constructors

RenderTarget(Engine, Size)

Creates a new render target texture wrapper

public RenderTarget(Engine engine, Size size)

Parameters

engine Engine

The Engine to store the texture in

size Size

The size of the texture - leave empty for fullscreen

Properties

Disposed

Was this object already disposed?

[Browsable(false)]
public bool Disposed { get; }

Property Value

bool

Texture

The texture containing the rendered content.

public Texture Texture { get; }

Property Value

Texture

Methods

Dispose()

Disposes the Texture this object wraps

public void Dispose()

~RenderTarget()

protected ~RenderTarget()

HoldReference()

Is ignored.

public void HoldReference()

ReleaseReference()

Is ignored.

public void ReleaseReference()

Operators

implicit operator Texture(RenderTarget)

Convert a RenderTarget into its contained SlimDX.Direct3D9.Texture.

public static implicit operator Texture(RenderTarget renderTarget)

Parameters

renderTarget RenderTarget

Returns

Texture

See Also