Urho.View Class

Internal structure for 3D rendering work. Created for each backbuffer and texture viewport, but not for shadow cameras.

See Also: View

Syntax

public class View : UrhoObject

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.View are listed below.

See Also: UrhoObject

Public Constructors

Constructs a new instance of Urho.View which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.View, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.View linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

[read-only]
CameraCamera. Return camera.
[read-only]
CullCameraCamera. Return culling camera. Normally same as the viewport camera.
[read-only]
DrawDebugBoolean. Return whether should draw debug geometry.
[read-only]
GraphicsGraphics. Return graphics subsystem.
[read-only]
NumActiveOccludersUInt32. Return number of occluders that were actually rendered. Occluders may be rejected if running out of triangles or if behind other occluders.
[read-only]
OcclusionBufferOcclusionBuffer. Return the last used software occlusion buffer.
[read-only]
OctreeOctree. Return octree.
[read-only]
RendererRenderer. Return renderer subsystem.
[read-only]
RenderTargetRenderSurface. Return the rendertarget. 0 if using the backbuffer.
[read-only]
SceneScene. Return scene.
[read-only]
SourceViewView. Return the source view that was already prepared. Used when viewports specify the same culling camera.
[read-only]
override
TypeStringHash. Urho's type system type.
[read-only]
override
TypeNameString. Urho's low-level type name.
[read-only]
static
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
[read-only]
static
TypeStaticStringHash. Urho's low-level type, accessible as a static method.
[read-only]
ViewRectIntRect. Return view rectangle.
[read-only]
ViewSizeIntVector2. Return view dimensions.

Public Methods

Define(RenderSurface, Viewport) : Boolean
Define with rendertarget and viewport. Return true if successful.
DrawFullscreenQuad(Boolean)
Draw a fullscreen quad. Shaders and renderstates must have been set beforehand. Quad will be drawn to the middle of depth range, similarly to deferred directional lights.
FindNamedTexture(String, Boolean, Boolean) : Texture
Get a named texture from the rendertarget list or from the resource cache, to be either used as a rendertarget or texture binding.
Render()
Render batches.
SetCameraShaderParameters(Camera)
Set camera-specific shader parameters. Called by Batch and internally by View.
SetCommandShaderParameters(RenderPathCommand)
Set command's shader parameters if any. Called internally by View.
SetGBufferShaderParameters(IntVector2, IntRect)
Set G-buffer offset and inverse size shader parameters. Called by Batch and internally by View.
SetGlobalShaderParameters()
Set global (per-frame) shader parameters. Called by Batch and internally by View.
SetStereoMode(Boolean)
Internal use.
SubscribeToBeginViewUpdate(Action<BeginViewUpdateEventArgs>) : Subscription
Subscribes to the BeginViewUpdate event raised by the View.
SubscribeToEndViewUpdate(Action<EndViewUpdateEventArgs>) : Subscription
Subscribes to the EndViewUpdate event raised by the View.

Public Events