Urho.Camera Class

Camera component.

See Also: Camera

Syntax

public class Camera : Component

Requirements

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

The members of Urho.Camera are listed below.

See Also: Component

Public Constructors

Constructs a new instance of Urho.Camera which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Camera, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Camera 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

AspectRatioSingle. Return aspect ratio. Or Set aspect ratio manually. Disables the auto aspect ratio -mode.
AutoAspectRatioBoolean. Return auto aspect ratio flag. Or Set automatic aspect ratio based on viewport dimensions. Enabled by default.
ClipPlanePlane. Return the custom clipping plane. Or Set custom clipping plane in world space.
[read-only]
ClipPlaneAttrVector4. Return clipping plane attribute.
[read-only]
EffectiveWorldTransformMatrix3x4. Get effective world transform for matrix and frustum calculations including reflection but excluding node scaling.
FarClipSingle. Return far clip distance. Or Set far clip distance.
FillModeFillMode. Return fill mode. Or Set polygon fill mode to use when rendering a scene.
FlipVerticalBoolean. Return vertical flipping mode. Or Set vertical flipping mode. Called internally by View to resolve OpenGL / Direct3D9 rendertarget sampling differences.
FovSingle. Return vertical field of view in degrees. Or Set vertical field of view in degrees.
[read-only]
GPUProjectionMatrix4. Return projection matrix converted to API-specific format for use as a shader parameter.
[read-only]
HalfViewSizeSingle. Return half view size.
LodBiasSingle. Return LOD bias. Or Set LOD bias.
NearClipSingle. Return near clip distance. Or Set near clip distance.
OrthographicBoolean. Determines whether the camera is Orthographic or not.
OrthoSizeSingle. Return orthographic mode size. Or Set orthographic mode view uniform size.
[read-only]
ProjectionMatrix4. Returns an API-specific projection matrix
ProjectionOffsetVector2. Return projection offset. Or Set projection offset. It needs to be calculated as (offset in pixels) / (viewport dimensions.)
[read-only]
ProjectionValidBoolean. Return if projection parameters are valid for rendering and raycasting.
ReflectionPlanePlane. Return the reflection plane. Or Set reflection plane in world space for reflection mode.
[read-only]
ReflectionPlaneAttrVector4. Return reflection plane attribute.
[read-only]
ReverseCullingBoolean. Return whether to reverse culling; affected by vertical flipping and reflection.
SkewSingle. Return skew. Or Set skew
[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.
UseClippingBoolean. Return whether is using a custom clipping plane. Or Set whether to use a custom clip plane.
UseReflectionBoolean. Return whether is using reflection. Or Set reflection mode.
[read-only]
ViewMatrix3x4. Return view matrix.
ViewMaskUInt32. Return view mask. Or Set view mask. Will be and'ed with object's view mask to see if the object should be rendered.
ViewOverrideFlagsViewOverrideFlags. Return view override flags. Or Set view override flags.
[read-only]
ViewSpaceFrustumFrustum. Return frustum in view space.
ZoomSingle. Return zoom. Or Set zoom.

Public Methods

override
DrawDebugGeometry(DebugRenderer, Boolean)
Visualize the component as debug geometry.
GetDistance(Vector3) : Single
Return distance to position. In orthographic mode uses only Z coordinate.
GetDistanceSquared(Vector3) : Single
Return squared distance to position. In orthographic mode uses only Z coordinate.
GetFaceCameraRotation(Vector3, Quaternion, FaceCameraMode, Single) : Quaternion
GetLodDistance(Single, Single, Single) : Single
Return a scene node's LOD scaled distance.
GetScreenRay(Single, Single) : Ray
Return ray corresponding to normalized screen coordinates (0.0 - 1.0).
GetSplitFrustum(Single, Single) : Frustum
Return frustum split by custom near and far clip distances.
GetViewSpaceSplitFrustum(Single, Single) : Frustum
Return split frustum in view space.
static
RegisterObject(Context)
Register object factory.
ScreenToWorldPoint(Vector3) : Vector3
SetAspectRatioInternal(Single)
Set aspect ratio without disabling the "auto aspect ratio" mode. Called internally by View.
SetClipPlaneAttr(Vector4)
Set clipping plane attribute.
SetOrthoSize(Vector2)
Set orthographic mode view non-uniform size. Disables the auto aspect ratio -mode.
SetOrthoSizeAttr(Single)
Set orthographic size attribute without forcing the aspect ratio.
SetProjection(Matrix4)
SetReflectionPlaneAttr(Vector4)
Set reflection plane attribute.
WorldToScreenPoint(Vector3) : Vector2