Urho.Viewport Class

Viewport definition either for a render surface or the backbuffer.

See Also: Viewport

Syntax

public class Viewport : UrhoObject

Requirements

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

The members of Urho.Viewport are listed below.

See Also: UrhoObject

Public Constructors

Constructs a new instance of Urho.Viewport which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Viewport, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Viewport linked to a specific Context.
Creates an instance of Viewport that is attached to an execution context.
Creates an instance of Viewport that is attached to an execution 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. Or Set camera.
CullCameraCamera. Return the culling camera. If null, the viewport camera will be used for culling (normal case.) Or Set separate camera to use for culling. Sharing a culling camera between several viewports allows to prepare the view only once, saving in CPU use. The culling camera's frustum should cover all the viewport cameras' frusta or else objects may be missing from the rendered view.
DrawDebugBoolean. Return whether to draw debug geometry. Or Set whether to render debug geometry. Default true.
RectIntRect. Return rectangle. Or Set rectangle.
RenderPathRenderPath. Return rendering path. Or Set rendering path.
SceneScene. Return scene. Or Set scene.
[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]
ViewView. Return the internal rendering structure. May be null if the viewport has not been rendered yet.

Public Methods

AllocateView()
Allocate the view structure. Called by Renderer.
GetScreenRay(Int32, Int32) : Ray
Return ray corresponding to normalized screen coordinates.
ScreenToWorldPoint(Int32, Int32, Single) : Vector3
SetClearColor(Color)
Sets the clear color on all clear render commands in the render path. 
SetRenderPath(XmlFile)
SetStereoMode(Boolean)
WorldToScreenPoint(Vector3) : IntVector2