Class TCastlePolygon2D
Unit
Declaration
type TCastlePolygon2D = class(TCastleLine2DBase)
Description
A potentially non-convex polygon. It is constructed from a set of vertices using the triangulation method.
To enter edit mode, use "verb" (Edit mode ON) - right-click on the object in the object hierarchy window.
Hierarchy
- TCastleAbstractPrimitive
- TCastleLine2DBase
- TCastlePolygon2D
Overview
Methods
procedure ChangedTransform; override; |
|
procedure SetLineType(NewLineType:TCastleLineType); override; |
|
function CalculateAreaWithoutDisplay:single; |
|
procedure ReLoadoverride; |
|
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
procedure Clear; override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
property Area: single read FArea; |
|
property TextureScale: TVector2 read FTextureScale write SetTextureScale; |
|
property TextureScalePersistent: TCastleVector2Persistent read FTextureScalePersistent; |
|
property TexCoordMode: TPolygonTexCoordMode read FTexCoordMode write SetTexCoordMode default cmDefault; |
|
property LineType; |
Description
Methods
procedure ChangedTransform; override; |
|
procedure SetLineType(NewLineType:TCastleLineType); override; |
|
The line type is always ltClose |
function CalculateAreaWithoutDisplay:single; |
|
procedure ReLoadoverride; |
|
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
procedure Clear; override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
|
Properties
property TextureScale: TVector2 read FTextureScale write SetTextureScale; |
|
The parameter affects the texture magnification when TexCoordMode=cm Repeat. The smaller it is, the bigger the texture. |
property TextureScalePersistent: TCastleVector2Persistent read FTextureScalePersistent; |
|
property TexCoordMode: TPolygonTexCoordMode read FTexCoordMode write SetTexCoordMode default cmDefault; |
|
Method for calculating texture coordinates |
property LineType; |
|
Generated by PasDoc 0.16.0.