Unit CastleViewport

Description

Viewport to display scenes (TCastleViewport).

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TCastleViewport Viewport displays a tree of scenes and transformations (TCastleTransform and descendants of it, like TCastleScene).
Class TCastleViewportList  
Class TCastleAutoNavigationViewport Automatically create and switch between various navigation classes on a viewport.
Class TCastleSceneManager Deprecated way to manage transformations and scenes.
Class TCastleTouchNavigation Show draggable controls in the corner, to navigate in the viewport comfortably on touch devices.
Class TSerializedComponentHelper Helper methods extending TSerializedComponent.

Types

TRenderOnePassEvent = procedure (Viewport: TCastleViewport; const Params: TRenderParams) of object;
TProjectionEvent = procedure (var Parameters: TProjection) of object;
TInternalDesignNavigationType = (...);
TNavigationType = (...);
TTouchInterface = (...);

Variables

Input_Interact: TInputShortcut;

Description

Types

TRenderOnePassEvent = procedure (Viewport: TCastleViewport; const Params: TRenderParams) of object;
 
TProjectionEvent = procedure (var Parameters: TProjection) of object;

Event for TCastleViewport.OnProjection.

TInternalDesignNavigationType = (...);
 
Values
  • dnFly
  • dnExamine
  • dn2D
TNavigationType = (...);

Navigation type that determines various navigation properties, used by TCastleAutoNavigationViewport.NavigationType.

Values
TTouchInterface = (...);

Value for TCastleTouchNavigation.TouchInterface.

Values
  • tiNone
  • tiWalk
  • tiWalkRotate
  • tiFlyWalk
  • tiPan

Variables

Input_Interact: TInputShortcut;

Key/mouse combination to interact with clickable things in TCastleViewport.Items. More precisely, this input will activate pointing device sensors in X3D, which are used to touch (click) or drag things. By default this is left mouse button click.

You can change it to any other mouse button or even to key combination. Simply change properties like TInputShortcut.Key1 or TInputShortcut.MouseButtonUse.


Generated by PasDoc 0.16.0.