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

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;
 
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;

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.

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.

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

Which axis is determined explicitly by FieldOfView.

See also
TFieldOfViewAxis
Value of TCastlePerspective.FieldOfViewAxis.

Generated by PasDoc 0.16.0.