OmegaEngine API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Static Public Member Functions | Package 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.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...
 

Package Functions

void RenderTo (Action render)
 Renders the content of a delegate to this texture More...
 

Properties

Surface Surface [get, set]
 The surface to render onto. More...
 
Texture Texture [get, set]
 The texture containing the rendered content. More...
 
bool Disposed [get, set]
 Was this object already disposed? More...
 
Size Size [get]
 The size for this render target (is empty for fullscreen) More...
 
Viewport Viewport [get, set]
 The currently effective Viewport for this render target More...
 
- Properties inherited from OmegaEngine.Graphics.ITextureProvider
Texture Texture [get]
 The SlimDX.Direct3D9.Texture this object represents. 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

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

void OmegaEngine.Graphics.RenderTarget.Dispose ( )
inline

Disposes the Texture this object wraps

void OmegaEngine.Graphics.RenderTarget.HoldReference ( )
inline

Is ignored.

Implements OmegaEngine.Assets.IReferenceCount.

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

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

void OmegaEngine.Graphics.RenderTarget.ReleaseReference ( )
inline

Is ignored.

Implements OmegaEngine.Assets.IReferenceCount.

void OmegaEngine.Graphics.RenderTarget.RenderTo ( Action  render)
inlinepackage

Renders the content of a delegate to this texture

Parameters
renderThe content to be rendered

Property Documentation

bool OmegaEngine.Graphics.RenderTarget.Disposed
getset

Was this object already disposed?

Size OmegaEngine.Graphics.RenderTarget.Size
getpackage

The size for this render target (is empty for fullscreen)

Surface OmegaEngine.Graphics.RenderTarget.Surface
getsetpackage

The surface to render onto.

Texture OmegaEngine.Graphics.RenderTarget.Texture
getset

The texture containing the rendered content.

Viewport OmegaEngine.Graphics.RenderTarget.Viewport
getsetpackage

The currently effective Viewport for this render target


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