Urho.View Class

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

See Also: View


public class View : UrhoObject


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

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

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

Public Methods

Define(RenderSurface, Viewport) : Boolean
Define with rendertarget and viewport. Return true if successful.
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 batches.
Set camera-specific shader parameters. Called by Batch and internally by View.
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.
Set global (per-frame) shader parameters. Called by Batch and internally by View.
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