Urho.Camera Class

Camera component.

See Also: Camera


public class Camera : Component


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

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.
ClipPlaneAttrVector4. Return clipping plane attribute.
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.
GPUProjectionMatrix4. Return projection matrix converted to API-specific format for use as a shader parameter.
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.
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.)
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.
ReflectionPlaneAttrVector4. Return reflection plane attribute.
ReverseCullingBoolean. Return whether to reverse culling; affected by vertical flipping and reflection.
SkewSingle. Return skew. Or Set skew
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.
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.
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.
ViewSpaceFrustumFrustum. Return frustum in view space.
ZoomSingle. Return zoom. Or Set zoom.

Public Methods

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.
Register object factory.
ScreenToWorldPoint(Vector3) : Vector3
Set aspect ratio without disabling the "auto aspect ratio" mode. Called internally by View.
Set clipping plane attribute.
Set orthographic mode view non-uniform size. Disables the auto aspect ratio -mode.
Set orthographic size attribute without forcing the aspect ratio.
Set reflection plane attribute.
WorldToScreenPoint(Vector3) : Vector2