Class TCastlePerspective

Unit

Declaration

type TCastlePerspective = class(TCastleComponent)

Description

Subcomponent used in TCastleCamera.Perspective to set perspective projection parameters.

Do not create instances of this class yourself, these are automatically created by TCastleCamera.

Source: transform/castletransform_camera.inc (line 51).

Hierarchy

Overview

Fields

Public nested const DefaultFieldOfView = Pi / 4;
Public nested const DefaultFieldOfViewAxis = faSmallest;

Methods

Public constructor Create(AOwner: TComponent); override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Public property EffectiveFieldOfView: TVector2 read FEffectiveFieldOfView;
Published property FieldOfView: Single read FFieldOfView write SetFieldOfView stored IsStoredFieldOfView default DefaultFieldOfView;
Published property FieldOfViewAxis: TFieldOfViewAxis read FFieldOfViewAxis write SetFieldOfViewAxis default DefaultFieldOfViewAxis;

Description

Fields

Public nested const DefaultFieldOfView = Pi / 4;

This item has no description.

Source: transform/castletransform_camera.inc (line 65).

Public nested const DefaultFieldOfViewAxis = faSmallest;

This item has no description.

Source: transform/castletransform_camera.inc (line 66).

Methods

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Source: transform/castletransform_camera.inc (line 68).

Public function PropertySections(const PropertyName: String): TPropertySections; override;

This item has no description. Showing description inherited from TCastleComponent.PropertySections.

Section where to show property in the editor.

Source: transform/castletransform_camera.inc (line 69).

Properties

Public property EffectiveFieldOfView: TVector2 read FEffectiveFieldOfView;

Effective field of view, horizontal and vertical, in radians. Calculated looking at FieldOfView and FieldOfViewAxis, taking into account sizes of the viewport using this camera.

Source: transform/castletransform_camera.inc (line 74).

Published property FieldOfView: Single read FFieldOfView write SetFieldOfView stored IsStoredFieldOfView default DefaultFieldOfView;

Perspective field of view angle, in radians. The FieldOfViewAxis determines whether this is horizontal or vertical angle.

Source: transform/castletransform_camera.inc (line 79).

Published property FieldOfViewAxis: TFieldOfViewAxis read FFieldOfViewAxis write SetFieldOfViewAxis default DefaultFieldOfViewAxis;

Which axis is determined explicitly by FieldOfView.

See also
TFieldOfViewAxis
Value of TCastlePerspective.FieldOfViewAxis.

Source: transform/castletransform_camera.inc (line 84).


Generated by PasDoc 0.17.0.snapshot.