Table of Contents

Class TextureView

Namespace
OmegaEngine.Graphics
Assembly
OmegaEngine.dll

A special kind of View that directs its output into a texture RenderTarget instead of printing straight to the screen.

public abstract class TextureView : View, IDisposable
Inheritance
TextureView
Implements
Derived
Inherited Members
Extension Methods

Remarks

These Views usually provide helper data (shadows, reflections) for the main Views. They are then referenced in ChildViews.

Constructors

TextureView(Scene, Camera, Size)

Creates a new view for rendering to a texture

protected TextureView(Scene scene, Camera camera, Size size)

Parameters

scene Scene

The Scene to render

camera Camera

The Camera to look at the Scene with

size Size

The size of screen area this view should fill (leave empty for fullscreen)

Properties

FullAlpha

Not applicable to TextureView

[Browsable(false)]
public override sealed int FullAlpha { get; set; }

Property Value

int

TextureRenderTarget

Does this View render to a texture RenderTarget? true since this is a TextureView.

protected override bool TextureRenderTarget { get; }

Property Value

bool

Methods

ApplyPostShaders(bool)

Applies PostShaders to the output

protected override void ApplyPostShaders(bool sceneOnBackBuffer)

Parameters

sceneOnBackBuffer bool

Is the scene currently on the backbuffer?
If this is false, it is in RenderTarget.

GetRenderTarget()

The texture this view renders to. May change, do not store externally!

public RenderTarget GetRenderTarget()

Returns

RenderTarget

OnEngineSet()

Hook that is called when Engine is set for the first time.

protected override void OnEngineSet()