Class TShapeList

Unit

Declaration

type TShapeList = class(specialize TObjectList<TShape>)

Description

Hierarchy

Overview

Methods

Public constructor Create; overload;
Public constructor Create(const Tree: TShapeTree; const OnlyActive: boolean; const OnlyVisible: boolean = false; const OnlyCollidable: boolean = false); overload; deprecated 'use Tree.TraverseList(...)';
Public procedure SortFrontToBack(const Position: TVector3);
Public procedure SortBackToFront(const Position: TVector3; const Distance3D: boolean);

Description

Methods

Public constructor Create; overload;
 
Public constructor Create(const Tree: TShapeTree; const OnlyActive: boolean; const OnlyVisible: boolean = false; const OnlyCollidable: boolean = false); overload; deprecated 'use Tree.TraverseList(...)';

Warning: this symbol is deprecated: use Tree.TraverseList(...)

Constructor that initializes list contents by traversing given tree.

Public procedure SortFrontToBack(const Position: TVector3);

Sort shapes by distance to given Position point, closest first.

Public procedure SortBackToFront(const Position: TVector3; const Distance3D: boolean);

Sort shapes by distance to given Position point, farthest first.

If Distance3D is True: we use real distance in 3D to sort. See the bs3D at TBlendingSort documentation.

If Distance3D is False: we use only the distance in the Z coordinate to sort. This is suitable for rendering things that pretend to be 2D, like Spine slots. See the bs2D at TBlendingSort documentation.


Generated by PasDoc 0.16.0.