Class TShapeList
Unit
CastleShapes
Declaration
type TShapeList = class(specialize TObjectList<TShape>)
Description
Hierarchy
Overview
Methods
Description
Methods
 |
constructor Create; |
|
 |
constructor Create(Tree: TShapeTree; const OnlyActive: boolean; const OnlyVisible: boolean = false; const OnlyCollidable: boolean = false); |
Constructor that initializes list contents by traversing given tree.
|
 |
procedure SortFrontToBack(const Position: TVector3); |
Sort shapes by distance to given Position point, closest first.
|
 |
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.15.0.
|