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.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastlePerspective
Overview
Fields
![]() |
nested const DefaultFieldOfView = Pi / 4; |
![]() |
nested const DefaultFieldOfViewAxis = faSmallest; |
Methods
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
![]() |
property EffectiveFieldOfView: TVector2 read FEffectiveFieldOfView; |
![]() |
property FieldOfView: Single read FFieldOfView write SetFieldOfView
stored IsStoredFieldOfView default DefaultFieldOfView; |
![]() |
property FieldOfViewAxis: TFieldOfViewAxis
read FFieldOfViewAxis write SetFieldOfViewAxis default DefaultFieldOfViewAxis; |
Description
Fields
![]() |
nested const DefaultFieldOfView = Pi / 4; |
![]() |
nested const DefaultFieldOfViewAxis = faSmallest; |
Methods
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
![]() |
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. |
![]() |
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. |
![]() |
property FieldOfViewAxis: TFieldOfViewAxis
read FFieldOfViewAxis write SetFieldOfViewAxis default DefaultFieldOfViewAxis; |
Which axis is determined explicitly by FieldOfView. See also |
Generated by PasDoc 0.16.0.