Class TCastleRootTransform

Unit

Declaration

type TCastleRootTransform = class(TCastleAbstractRootTransform)

Description

Root of transformations and scenes (tree of TCastleTransform and TCastleScene).

Hierarchy

Overview

Methods

Protected function IgnoreTransparentItem( const Sender: TObject; const Triangle: PTriangle): Boolean; override;
Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Public property HeadlightNode: TAbstractLightNode read GetHeadlightNode write SetHeadlightNode;
Published property MainScene: TCastleScene read FMainScene write SetMainScene;
Published property UseHeadlight: TUseHeadlight read FUseHeadlight write FUseHeadlight default hlMainScene;

Description

Methods

Protected function IgnoreTransparentItem( const Sender: TObject; const Triangle: PTriangle): Boolean; override;
 
Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public function PropertySections(const PropertyName: String): TPropertySections; override;
 

Properties

Public property HeadlightNode: TAbstractLightNode read GetHeadlightNode write SetHeadlightNode;

Determines the headlight look, if we use a headlight (which is determined by the algorithm described at UseHeadlight and TUseHeadlight). By default it's a simplest directional headlight, but you can customize it, and thus you can use a point light or a spot light for a headlight. Just like https://castle-engine.io/x3d_implementation_navigation_extensions.php#section_ext_headlight .

This is never Nil. Assigning here Nil simply causes us to recreate it using the simplest directional headlight.

Published property MainScene: TCastleScene read FMainScene write SetMainScene;

The main scene of the world. It's not necessary to set this. It adds some optional features that require a notion of the "main" scene to make sense.

The scene you set here must also be added to our Items.

The MainScene is used for a couple of things:

Freeing MainScene will automatically set this property to Nil.

Published property UseHeadlight: TUseHeadlight read FUseHeadlight write FUseHeadlight default hlMainScene;

Whether the headlight is shown, see TUseHeadlight for possible values.


Generated by PasDoc 0.16.0.