OmegaEngine API  1.0.3
Public Member Functions | Static Public Member Functions | Properties | List of all members
OmegaEngine.Graphics.RenderTarget Class Reference

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

Inheritance diagram for OmegaEngine.Graphics.RenderTarget:
OmegaEngine.Graphics.ITextureProvider OmegaEngine.Collections.IPoolable< RenderTarget > OmegaEngine.Assets.IReferenceCount

Public Member Functions

 RenderTarget (Engine engine, Size size)
 Creates a new render target texture wrapper More...
 
void HoldReference ()
 Is ignored. More...
 
void ReleaseReference ()
 Is ignored. More...
 
void Dispose ()
 Disposes the Texture this object wraps More...
 

Static Public Member Functions

static implicit operator Texture (RenderTarget renderTarget)
 Convert a RenderTarget into its contained SlimDX.Direct3D9.Texture. More...
 

Properties

Texture Texture [get]
 The texture containing the rendered content. More...
 
bool Disposed [get]
 Was this object already disposed? More...
 
- Properties inherited from OmegaEngine.Graphics.ITextureProvider
Texture Texture [get]
 The SlimDX.Direct3D9.Texture this object represents. More...
 
- Properties inherited from OmegaEngine.Collections.IPoolable< RenderTarget >
NextElement [get, set]
 A reference to the next element in the Pool<T> chain. More...
 

Detailed Description

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

Lost devices are automatically handled.

See also
TextureView.GetRenderTarget

Constructor & Destructor Documentation

◆ RenderTarget()

OmegaEngine.Graphics.RenderTarget.RenderTarget ( Engine  engine,
Size  size 
)
inline

Creates a new render target texture wrapper

Parameters
engineThe OmegaEngine.Engine to store the texture in
sizeThe size of the texture - leave empty for fullscreen

Member Function Documentation

◆ Dispose()

void OmegaEngine.Graphics.RenderTarget.Dispose ( )
inline

Disposes the Texture this object wraps

◆ HoldReference()

void OmegaEngine.Graphics.RenderTarget.HoldReference ( )
inline

Is ignored.

Implements OmegaEngine.Assets.IReferenceCount.

◆ operator Texture()

static implicit OmegaEngine.Graphics.RenderTarget.operator Texture ( RenderTarget  renderTarget)
inlinestatic

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

◆ ReleaseReference()

void OmegaEngine.Graphics.RenderTarget.ReleaseReference ( )
inline

Is ignored.

Implements OmegaEngine.Assets.IReferenceCount.

Property Documentation

◆ Disposed

bool OmegaEngine.Graphics.RenderTarget.Disposed
get

Was this object already disposed?

◆ Texture

Texture OmegaEngine.Graphics.RenderTarget.Texture
get

The texture containing the rendered content.


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