Urho.Viewport Class

Viewport definition either for a render surface or the backbuffer.

See Also: Viewport


public class Viewport : UrhoObject


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

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.
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.
ViewView. Return the internal rendering structure. May be null if the viewport has not been rendered yet.

Public Methods

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