TGorillaCylinder
Defines a simple cub component, but differs by internal usage from FMX TCylinder.
Remarks
The Gorilla3D cylinder enables static buffering of vertices and indices. This allows also large number of vertices of cylinders.This component uses by default static buffering to push vertices only once to GPU.
Ancestors
Members
Fields
- protected FSubdivisionsAxes :
Integer
- protected FSubdivisionsCap :
Integer
- protected FSubdivisionsHeight :
Integer
Methods
- public constructor Create ( AOwner : TComponent ) ;
- protected procedure SetSubdivisionsAxes ( const Value : Integer ) ;
- protected procedure SetSubdivisionsCap ( const Value : Integer ) ;
- protected procedure SetSubdivisionsHeight ( const Value : Integer ) ;
- protected procedure Resize3D ( ) ; override;
- protected procedure CreateStaticBuffer
(
)
;
Creates a new static buffer for this cylinder mesh in the local mesh definition.
- public procedure RebuildMesh
(
AIsStatic :
Boolean
=
True
)
;
Rebuilds the cylinder mesh depending on the configured SubdivisionsAxes and SubdivisionsHeight values.
Properties
- published SubdivisionsAxes : Integer
- published SubdivisionsCap : Integer
- published SubdivisionsHeight : Integer
- published MaterialSource : TMaterialSource
- published Cursor : TCursor
- published DragMode : TDragMode
- published Position : TPosition3D
- published Scale : TPosition3D
- published RotationAngle : TPosition3D
- published Locked : Boolean
- published Opacity : Single
- published Projection : TProjection
- published HitTest : Boolean
- published VisibleContextMenu : Boolean
- published TwoSide : Boolean
- published Visible : Boolean
- published ZWrite : Boolean