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
SceneThe Scene to render
camera
Camerasize
SizeThe 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
TextureRenderTarget
Does this View render to a texture RenderTarget? true
since this is a TextureView.
protected override bool TextureRenderTarget { get; }
Property Value
Methods
ApplyPostShaders(bool)
Applies PostShaders to the output
protected override void ApplyPostShaders(bool sceneOnBackBuffer)
Parameters
sceneOnBackBuffer
boolIs the scene currently on the backbuffer?
If this isfalse
, it is in RenderTarget.
GetRenderTarget()
The texture this view renders to. May change, do not store externally!
public RenderTarget GetRenderTarget()
Returns
OnEngineSet()
Hook that is called when Engine is set for the first time.
protected override void OnEngineSet()